{
  "info": {
    "_postman_id": "c587497e-802b-4467-927b-972f797a1a6d",
    "name": "Протокол 1.4 Электронный листок нетрудоспособности по беременности и родам",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "37937048"
  },
  "item": [
    {
      "name": "предварительные условия",
      "item": [
        {
          "name": "создание пациента",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
                  "    pm.response.to.have.status(202);\r",
                  "});\r",
                  "\r",
                  "var jsonData = pm.response.json();\r",
                  "let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
                  "let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
                  "\r",
                  "console.log(statusReference.valueReference.reference);\r",
                  "\r",
                  "pm.collectionVariables.set(\"bundleId\", bundleId);\r",
                  "pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            },
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "X-Fhir-By-Version",
                "value": "active",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"ExampleBundleForDemo\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-07-22T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompDocumentForDemo\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"{{$guid}}\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient3\",\r\n                        \"display\": \"Евдокимова Л.И.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataBoolean\",\r\n                                \"valueBoolean\": true\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataPeriod\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2024-08-01\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalData\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    }\r\n                    \r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Евдокимова\",\r\n                        \"given\": [\r\n                            \"Людмила\",\r\n                            \"Ивановна\"\r\n                        ]\r\n                    }\r\n                ],\r\n              \r\n                \"gender\": \"female\",\r\n                \"birthDate\": \"1996-02-28\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Гоголя, д.19\",\r\n                        \"postalCode\": \"212011\"\r\n                    }\r\n                ],\r\n                \"contact\": [\r\n                    {\r\n                        \"name\": {\r\n                            \"family\": \"Петров\",\r\n                            \"given\": [\r\n                                \"Иван\"\r\n                            ]\r\n                        },\r\n                        \"telecom\": [\r\n                            {\r\n                                \"system\": \"phone\",\r\n                                \"value\": \"80299099090\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "$import"
              ]
            }
          },
          "response": []
        },
        {
          "name": "получение статуса импорта пакета медицинских данных",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "{{bundleId}}",
                "$status"
              ]
            }
          },
          "response": []
        },
        {
          "name": "поиск пациента по идентификационному номеру",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "var jsonData = pm.response.json();\r",
                  "let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
                  "\r",
                  "pm.collectionVariables.set(\"pregnancyPatientId\", patientId);\r",
                  "console.log(patientId)\r",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient?identifier=7150892A001PB9",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Patient"
              ],
              "query": [
                {
                  "key": "identifier",
                  "value": "7150892A001PB9"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "CASE 1: Формирование ЭЛН на 126 дней",
      "item": [
        {
          "name": "предварительные условия",
          "item": [
            {
              "name": "Импорт Сведений о ВН",
              "item": [
                {
                  "name": "Валидация импорта Сведений о ВН",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "var compressedBundle = pm.request.body.raw;\r",
                          "\r",
                          "let organizationId = pm.environment.get(\"OrganizationId\");\r",
                          "let practitionerId = pm.environment.get(\"PractitionerId\");\r",
                          "let practitionerRoleId = pm.environment.get(\"PractitionerRoleId\");\r",
                          "let practitionerRoleHeadId = pm.environment.get(\"PractitionerRoleHeadId\");\r",
                          "let randomId = pm.variables.replaceIn(\"{{$guid}}\");\r",
                          "\r",
                          "compressedBundle = compressedBundle\r",
                          "    .replace(/{{OrganizationId}}/g, organizationId)\r",
                          "    .replace(/{{PractitionerId}}/g, practitionerId)    \r",
                          "    .replace(/{{PractitionerRoleId}}/g, practitionerRoleId)\r",
                          "    .replace(/{{randomGuid}}/g, randomId)\r",
                          "    .replace(/{{PractitionerRoleHeadId}}/g, practitionerRoleHeadId)\r",
                          "    .replace(/{{randomValue}}/g, Math.random().toString().replace(\".\",\"\"));\r",
                          "\r",
                          "compressedBundle = JSON.stringify(JSON.parse(compressedBundle));\r",
                          "pm.collectionVariables.set(\"compressedBundle\", compressedBundle);\r",
                          "pm.environment.set(\"data_raw1\", compressedBundle);\r",
                          "\r",
                          "console.log(compressedBundle)\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "X-Fhir-By-Version",
                        "value": "active",
                        "type": "text"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"4847cbb0-8ece-433d-8099-5482ae62bfe1\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"4047cbb0-8ece-433d-8099-5682ae67bfe22\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient3\",\r\n                        \"display\": \"Евдокимова Л.И.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataBoolean\",\r\n                                \"valueBoolean\": true\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataPeriod\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2024-08-01\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalData\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Евдокимова\",\r\n                        \"given\": [\r\n                            \"Людмила\",\r\n                            \"Ивановна\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \r\n                \"gender\": \"female\",\r\n                \"birthDate\": \"1996-02-28\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Гоголя, д.19\",\r\n                        \"postalCode\": \"212011\"\r\n                    }\r\n                ],\r\n                \"contact\": [\r\n                    {\r\n                        \"name\": {\r\n                            \"family\": \"Петров\",\r\n                            \"given\": [\r\n                                \"Иван\"\r\n                            ]\r\n                        },\r\n                        \"telecom\": [\r\n                            {\r\n                                \"system\": \"phone\",\r\n                                \"value\": \"80299099090\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },        \r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleCasePregnancy4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleCasePregnancy4\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2024-02-01T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\r\n                                    \"code\": \"09\",\r\n                                    \"display\": \"в связи с беременностью и родами, в том числе наступившими до 30 недель беременности (27 недель беременности - у женщин, постоянно (преимущественно) проживающих и (или) работающих, проходящих службу, обучающихся на территории радиоактивного загрязнения), осложнениями беременности, родов и (или) послеродового периода, а также усыновлением (удочерением), установлением опеки над ребенком в возрасте до 3 месяцев (беременность и роды)\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityEncounterAction\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/SeakLeavePeriod\",\r\n                                    \"code\": \"close\",\r\n                                    \"display\": \"Закрытие случая\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"амбулаторный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TDCaseClosing\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TDCaseClosing\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"Пациент признан трудоспособным, или закрывается ЛН в связи с уходом за больным членом семьи\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\r\n                                    \"code\": \"1\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/HeadOfUnit\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleHeadId}}\",\r\n                            \"display\": \"заведующий отделением, Алешкевич Сергей Иванович\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"finished\",\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityReasonOfDisability\",\r\n                                    \"code\": \"85\",\r\n                                    \"display\": \"Отпуск по беременности и родам\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient3\",\r\n                    \"display\": \"Евдокимова Людмила Ивановна 28.02.1996 г.р.\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2026-01-01\",\r\n                    \"end\": \"2026-05-07\"\r\n                },\r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Provenance/ExampleTDProvenance\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Provenance\",\r\n                \"id\": \"ExampleTDProvenance\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ProvenanceTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/OrganizationReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"target\": [\r\n                    {\r\n                        \"reference\": \"EpisodeOfCare/ExampleCasePregnancy4\"\r\n                    }\r\n                ],\r\n                \"recorded\": \"2024-04-16T10:30:00Z\",\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient3\"\r\n                },\r\n                \"agent\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ProvenanceAgentStatus\",\r\n                                \"valueBoolean\": false\r\n                            }\r\n                        ],\r\n                        \"who\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleHeadId}}\"\r\n                        },\r\n                        \"onBehalfOf\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$validate",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "$validate"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Подписание (ЭЦП) импорта Сведений о ВН",
                  "event": [
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "const CryptoJS = require('crypto-js');\r",
                          "const data_raw1 = pm.environment.get('data_raw1');\r",
                          "const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw1));\r",
                          "pm.environment.set('data_base64', data_base64);\r",
                          "\r",
                          "// let compressedBundle = pm.environment.get(\"compressedBundle\");\r",
                          "// pm.environment.set('data_base64', compressedBundle);"
                        ],
                        "type": "text/javascript",
                        "packages": {}
                      }
                    },
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "let responseJson = pm.response.json();\r",
                          "pm.environment.set(\"cmsValue\", responseJson.cms);"
                        ],
                        "type": "text/javascript",
                        "packages": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "raw",
                      "raw": "{\r\n    \"data\": \"{{data_base64}}\",\r\n    \"isDetached\": \"false\"\r\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "http://localhost:8084/sign",
                      "protocol": "http",
                      "host": [
                        "localhost"
                      ],
                      "port": "8084",
                      "path": [
                        "sign"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Импорт подписанного документа",
                  "event": [
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "// const CryptoJS = require('crypto-js');\r",
                          "// const data_raw = pm.environment.get('data_raw');\r",
                          "// const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw));\r",
                          "// pm.environment.set('data_base64', data_base64);\r",
                          "\r",
                          "\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
                          "    pm.response.to.have.status(202);\r",
                          "});\r",
                          "\r",
                          "var jsonData = pm.response.json();\r",
                          "let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
                          "let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
                          "\r",
                          "console.log(statusReference.valueReference.reference);\r",
                          "\r",
                          "pm.collectionVariables.set(\"bundleId\", bundleId);\r",
                          "pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disabledSystemHeaders": {
                      "content-type": true
                    }
                  },
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/cms",
                        "type": "text"
                      },
                      {
                        "key": "X-Fhir-By-Version",
                        "value": "active",
                        "type": "text"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "\"{{cmsValue}}\"",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "$import"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "получение статуса импорта пакета медицинской информации",
                  "request": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "content-type",
                        "value": "application/cms",
                        "type": "text",
                        "disabled": true
                      }
                    ],
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "{{bundleId}}",
                        "$status"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "проверка сохранения Сведений о ВН в ЦИСЗ",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "var jsonData = pm.response.json();\r",
                          "let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
                          "\r",
                          "pm.collectionVariables.set(\"pregnancyTempDis\", resourceId);\r",
                          "\r",
                          "console.log(resourceId)\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "GET",
                    "header": [],
                    "body": {
                      "mode": "raw",
                      "raw": ""
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{pregnancyPatientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability&patient={{pregnancyPatientId}}&date=2026-01-01",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Patient",
                        "{{pregnancyPatientId}}",
                        "EpisodeOfCare"
                      ],
                      "query": [
                        {
                          "key": "_profile",
                          "value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability"
                        },
                        {
                          "key": "patient",
                          "value": "{{pregnancyPatientId}}"
                        },
                        {
                          "key": "date",
                          "value": "2026-01-01"
                        }
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "проверка отсутствия Случая ВН",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "GET",
                    "header": [],
                    "body": {
                      "mode": "raw",
                      "raw": ""
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{pregnancyPatientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{pregnancyPatientId}}&status=finished",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Patient",
                        "{{pregnancyPatientId}}",
                        "EpisodeOfCare"
                      ],
                      "query": [
                        {
                          "key": "_profile",
                          "value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
                        },
                        {
                          "key": "patient",
                          "value": "{{pregnancyPatientId}}"
                        },
                        {
                          "key": "status",
                          "value": "finished"
                        }
                      ]
                    }
                  },
                  "response": []
                }
              ],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {},
                    "exec": [
                      ""
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {},
                    "exec": [
                      ""
                    ]
                  }
                }
              ]
            },
            {
              "name": "Подписание ВН второй подписью",
              "item": [
                {
                  "name": "поиск Требования для подписи в контексте организации",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "var jsonData = pm.response.json();\r",
                          "let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"Provenance\").resource.id;\r",
                          "\r",
                          "pm.collectionVariables.set(\"pregnancyProvenance\", resourceId);\r",
                          "\r",
                          "console.log(resourceId)\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Organization/{{OrganizationId}}/Provenance?_profile=https://fhir.by/StructureDefinition/ProvenanceTemporaryDisability&target={{pregnancyTempDis}}&agent={{PractitionerRoleHeadId}}&agent-status=false",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Organization",
                        "{{OrganizationId}}",
                        "Provenance"
                      ],
                      "query": [
                        {
                          "key": "_profile",
                          "value": "https://fhir.by/StructureDefinition/ProvenanceTemporaryDisability"
                        },
                        {
                          "key": "target",
                          "value": "{{pregnancyTempDis}}"
                        },
                        {
                          "key": "agent",
                          "value": "{{PractitionerRoleHeadId}}"
                        },
                        {
                          "key": "agent-status",
                          "value": "false"
                        }
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "получение Сведений о ВН для подписания вторым лицом",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "var resource = pm.response.json();\r",
                          "\r",
                          "// Remove specific meta properties\r",
                          "if (resource.meta) {\r",
                          "    delete resource.meta.versionId;\r",
                          "    delete resource.meta.lastUpdated;\r",
                          "    delete resource.meta.source;\r",
                          "    delete resource.implicitRules;  \r",
                          "}\r",
                          "\r",
                          "resource.patient.reference = pm.collectionVariables.get(\"patientBundleReference\");\r",
                          "\r",
                          "pm.collectionVariables.set(\"pregnancyTempDis\", resource.id);\r",
                          "pm.collectionVariables.set(\"tdResource\", JSON.stringify(resource));\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{pregnancyPatientId}}/EpisodeOfCare/{{pregnancyTempDis}}",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Patient",
                        "{{pregnancyPatientId}}",
                        "EpisodeOfCare",
                        "{{pregnancyTempDis}}"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Валидация подписания Сведений о ВН вторым лицом",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "var compressedBundle = pm.request.body.raw;\r",
                          "\r",
                          "let organizationId = pm.environment.get(\"OrganizationId\");\r",
                          "let practitionerId = pm.environment.get(\"PractitionerId\");\r",
                          "let pregnancyTempDis = pm.collectionVariables.get(\"pregnancyTempDis\");\r",
                          "let tdResource = pm.collectionVariables.get(\"tdResource\");\r",
                          "let randomId = pm.variables.replaceIn(\"{{$guid}}\");\r",
                          "\r",
                          "compressedBundle = compressedBundle\r",
                          "    .replace(/{{OrganizationId}}/g, organizationId)\r",
                          "    .replace(/{{PractitionerId}}/g, practitionerId)    \r",
                          "    .replace(/{{pregnancyTempDis}}/g, pregnancyTempDis)\r",
                          "    .replace(/{{tdResource}}/g, tdResource)\r",
                          "    .replace(/{{randomGuid}}/g, randomId)\r",
                          "    .replace(/{{randomValue}}/g, Math.random().toString().replace(\".\",\"\"));\r",
                          "\r",
                          "compressedBundle = JSON.stringify(JSON.parse(compressedBundle));\r",
                          "pm.collectionVariables.set(\"compressedBundle\", compressedBundle);\r",
                          "pm.environment.set(\"data_raw1\", compressedBundle);\r",
                          "\r",
                          "console.log(compressedBundle)"
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disabledSystemHeaders": {}
                  },
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/cms",
                        "type": "text",
                        "disabled": true
                      },
                      {
                        "key": "X-Fhir-By-Version",
                        "value": "active",
                        "type": "text"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"807cbb0-8ece-433d-8199-5482ae67bfe3\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"4047cbb0-8ece-433d-8099-5482ae67bfe8\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient3\",\r\n                        \"display\": \"Евдокимова Л.И.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Алешкевич Сергей Иванович\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataBoolean\",\r\n                                \"valueBoolean\": true\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataPeriod\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2024-08-01\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalData\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Евдокимова\",\r\n                        \"given\": [\r\n                            \"Людмила\",\r\n                            \"Ивановна\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"female\",\r\n                \"birthDate\": \"1996-07-17\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Гоголя, д.19\",\r\n                        \"postalCode\": \"212011\"\r\n                    }\r\n                ],\r\n                \"contact\": [\r\n                    {\r\n                        \"name\": {\r\n                            \"family\": \"Петров\",\r\n                            \"given\": [\r\n                                \"Иван\"\r\n                            ]\r\n                        },\r\n                        \"telecom\": [\r\n                            {\r\n                                \"system\": \"phone\",\r\n                                \"value\": \"80299099090\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/{{pregnancyTempDis}}\",\r\n            \"resource\": {{tdResource}}\r\n        }\r\n    ]\r\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$validate",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "$validate"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Подписание (ЭЦП) второй подписью Сведений о ВН",
                  "event": [
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "const CryptoJS = require('crypto-js');\r",
                          "const data_raw1 = pm.environment.get('data_raw1');\r",
                          "const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw1));\r",
                          "pm.environment.set('data_base64', data_base64);\r",
                          "\r",
                          "// let compressedBundle = pm.environment.get(\"compressedBundle\");\r",
                          "// pm.environment.set('data_base64', compressedBundle);"
                        ],
                        "type": "text/javascript",
                        "packages": {}
                      }
                    },
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "let responseJson = pm.response.json();\r",
                          "pm.environment.set(\"cmsValue\", responseJson.cms);"
                        ],
                        "type": "text/javascript",
                        "packages": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "raw",
                      "raw": "{\r\n    \"data\": \"{{data_base64}}\",\r\n    \"isDetached\": \"false\"\r\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "http://localhost:8084/sign",
                      "protocol": "http",
                      "host": [
                        "localhost"
                      ],
                      "port": "8084",
                      "path": [
                        "sign"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Импорт подписанного документа",
                  "event": [
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "// const CryptoJS = require('crypto-js');\r",
                          "// const data_raw = pm.environment.get('data_raw');\r",
                          "// const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw));\r",
                          "// pm.environment.set('data_base64', data_base64);\r",
                          "\r",
                          "\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
                          "    pm.response.to.have.status(202);\r",
                          "});\r",
                          "\r",
                          "var jsonData = pm.response.json();\r",
                          "let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
                          "let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
                          "\r",
                          "console.log(statusReference.valueReference.reference);\r",
                          "\r",
                          "pm.collectionVariables.set(\"bundleId\", bundleId);\r",
                          "pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disabledSystemHeaders": {
                      "content-type": true
                    }
                  },
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/cms",
                        "type": "text"
                      },
                      {
                        "key": "X-Fhir-By-Version",
                        "value": "active",
                        "type": "text"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "\"{{cmsValue}}\"",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "$import"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "получение статуса импорта пакета медицинской информации",
                  "request": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "content-type",
                        "value": "application/cms",
                        "type": "text",
                        "disabled": true
                      }
                    ],
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "{{bundleId}}",
                        "$status"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "проверка сохранения Случай ВН",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "var jsonData = pm.response.json();\r",
                          "let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
                          "\r",
                          "pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
                          "console.log(EpisodeOfCareVN)"
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "GET",
                    "header": [],
                    "body": {
                      "mode": "raw",
                      "raw": ""
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{pregnancyPatientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{pregnancyPatientId}}",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Patient",
                        "{{pregnancyPatientId}}",
                        "EpisodeOfCare"
                      ],
                      "query": [
                        {
                          "key": "_profile",
                          "value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
                        },
                        {
                          "key": "patient",
                          "value": "{{pregnancyPatientId}}"
                        }
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "проверка сохранения подписи Требования",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "var jsonData = pm.response.json();\r",
                          "let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"Provenance\").resource.id;\r",
                          "\r",
                          "pm.collectionVariables.set(\"pregnancyProvenance\", resourceId);\r",
                          "\r",
                          "console.log(resourceId)"
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Organization/{{OrganizationId}}/Provenance?_profile=https://fhir.by/StructureDefinition/ProvenanceTemporaryDisability&target={{pregnancyTempDis}}",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Organization",
                        "{{OrganizationId}}",
                        "Provenance"
                      ],
                      "query": [
                        {
                          "key": "_profile",
                          "value": "https://fhir.by/StructureDefinition/ProvenanceTemporaryDisability"
                        },
                        {
                          "key": "target",
                          "value": "{{pregnancyTempDis}}"
                        }
                      ]
                    }
                  },
                  "response": []
                }
              ],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {},
                    "exec": [
                      ""
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {},
                    "exec": [
                      ""
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "Импорт ЭЛН",
          "item": [
            {
              "name": "поиск Случая ВН для формирования ЭЛН",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "var jsonData = pm.response.json();\r",
                      "let resource = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource;\r",
                      "\r",
                      "// Remove specific meta properties\r",
                      "if (resource.meta) {\r",
                      "    delete resource.meta.versionId;\r",
                      "    delete resource.meta.lastUpdated;\r",
                      "    delete resource.meta.source;   \r",
                      "    delete resource.implicitRules;\r",
                      "}\r",
                      "\r",
                      "pm.collectionVariables.set(\"pregnancyTempDisSum\", resource.id);\r",
                      "pm.collectionVariables.set(\"tdSumResource\", JSON.stringify(resource));\r",
                      "\r",
                      "let identifier = resource.identifier[0].value;\r",
                      "pm.collectionVariables.set(\"tdSumIdentifier\", identifier);\r",
                      "\r",
                      "console.log(JSON.stringify(resource))"
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "GET",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": ""
                },
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{pregnancyPatientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{pregnancyPatientId}}",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Patient",
                    "{{pregnancyPatientId}}",
                    "EpisodeOfCare"
                  ],
                  "query": [
                    {
                      "key": "_profile",
                      "value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
                    },
                    {
                      "key": "patient",
                      "value": "{{pregnancyPatientId}}"
                    }
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Валидация импорта ЭЛН",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      "var compressedBundle = pm.request.body.raw;\r",
                      "\r",
                      "let organizationId = pm.environment.get(\"OrganizationId\");\r",
                      "let practitionerId = pm.environment.get(\"PractitionerId\");\r",
                      "let documentType = pm.environment.get(\"documentType\");\r",
                      "let unp = pm.environment.get(\"OrganizationUnp\");\r",
                      "let identifier = pm.collectionVariables.get(\"tdSumIdentifier\");\r",
                      "let patientId = pm.collectionVariables.get(\"pregnancyPatientId\");\r",
                      "let tdSum = pm.collectionVariables.get(\"pregnancyTempDisSum\");\r",
                      "let practitionerRoleId = pm.environment.get(\"PractitionerRoleId\");\r",
                      "let tdSumResource = pm.collectionVariables.get(\"tdSumResource\");\r",
                      "let tempDisabilityCMS = pm.collectionVariables.get(\"pregnancyTempDisSumCMS\");\r",
                      "let randomId = pm.variables.replaceIn(\"{{$guid}}\");\r",
                      "\r",
                      "compressedBundle = compressedBundle\r",
                      "    .replace(/{{OrganizationId}}/g, organizationId)\r",
                      "    .replace(/{{PractitionerId}}/g, practitionerId)\r",
                      "    .replace(/{{documentType}}/g, documentType)\r",
                      "    .replace(/{{OrganizationUnp}}/g, unp)\r",
                      "    .replace(/{{tdSumIdentifier}}/g, identifier)\r",
                      "    .replace(/{{pregnancyPatientId}}/g, patientId)\r",
                      "    .replace(/{{pregnancyTempDisSum}}/g, tdSum)\r",
                      "    .replace(/{{PractitionerRoleId}}/g, practitionerRoleId)\r",
                      "    .replace(/{{tdSumResource}}/g, tdSumResource)\r",
                      "    .replace(/{{pregnancyTempDisSumCMS}}/g, tempDisabilityCMS)\r",
                      "    .replace(/{{randomGuid}}/g, randomId)\r",
                      "    .replace(/{{randomValue}}/g, Math.random().toString().replace(\".\",\"\"));\r",
                      "\r",
                      "compressedBundle = JSON.stringify(JSON.parse(compressedBundle));\r",
                      "pm.collectionVariables.set(\"compressedBundle\", compressedBundle);\r",
                      "pm.environment.set(\"data_raw1\", compressedBundle);\r",
                      "\r",
                      "console.log(compressedBundle)"
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "protocolProfileBehavior": {
                "disabledSystemHeaders": {}
              },
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/cms",
                    "type": "text",
                    "disabled": true
                  },
                  {
                    "key": "X-Fhir-By-Version",
                    "value": "active",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"4047cbb0-8ece-433d-8099-5482ae67bfe4\",\r\n    \"meta\": {\r\n        \"lastUpdated\": \"2024-02-01T10:30:00Z\",\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/BundleTD\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://minzdrav.gov.by\",\r\n        \"value\": \"{{documentType}}-{{OrganizationUnp}}-{{tdSumIdentifier}}-01\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2025-04-16T10:30:00Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/f1779376-3a50-4917-8b70-f25a7b8c4c8c\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"f1779376-3a50-4917-8b70-f25a7b8c4c8c\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/DocumentTD\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/DigitalDocumentKind\",\r\n                            \"code\": \"01\",\r\n                            \"display\": \"Электронный лист нетрудоспособности\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/{{pregnancyPatientId}}\",\r\n                        \"display\": \"Евдокимова Людмила Ивановна\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-02-01T10:30:00Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов Игорь Петрович\"\r\n                    }\r\n                ],\r\n                \"title\": \"Структура ЭЛН\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\",\r\n                    \"display\": \"Учреждение здравоохранения '1-я центральная районная клиническая поликлиника Центрального района г.Минска'\"\r\n                },\r\n                \"event\": [\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"EpisodeOfCare/{{pregnancyTempDisSum}}\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Task/f5735958-dac5-4c5a-9e27-d63f5da6a398\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Provenance/def8dec1-c85d-4dba-a904-96042bca198f\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/pc-8eedee99-1909-4d17-93bf-b8ffb0c5e580\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"pc-8eedee99-1909-4d17-93bf-b8ffb0c5e580\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2025-07-23T16:00:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientED\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DocumentKind\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/DigitalDocumentKind\",\r\n                                    \"code\": \"01\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Евдокимова\",\r\n                        \"given\": [\r\n                            \"Людмила\",\r\n                            \"Ивановна\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"birthDate\": \"1988-04-21\",\r\n                \"link\": [\r\n                    {\r\n                        \"other\": {\r\n                            \"reference\": \"Patient/{{pregnancyPatientId}}\"\r\n                        },\r\n                        \"type\": \"refer\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/{{pregnancyTempDisSum}}\",\r\n            \"resource\": {{tdSumResource}}\r\n        },\r\n        {\r\n            \"fullUrl\": \"Task/f5735958-dac5-4c5a-9e27-d63f5da6a398\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Task\",\r\n                \"id\": \"f5735958-dac5-4c5a-9e27-d63f5da6a398\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2024-04-16T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeToBePaid\"\r\n                    ]\r\n                },\r\n                \"basedOn\": [\r\n                    {\r\n                        \"reference\": \"EpisodeOfCare/{{pregnancyTempDisSum}}\"\r\n                    }\r\n                ],\r\n                \"status\": \"requested\",\r\n                \"intent\": \"order\",\r\n                \"for\": {\r\n                    \"reference\": \"Patient/pc-8eedee99-1909-4d17-93bf-b8ffb0c5e580\",\r\n                    \"display\": \"Евдокимова Людмила Ивановна\"\r\n                },\r\n                \"executionPeriod\": {\r\n                    \"start\": \"2026-01-01\",\r\n                    \"end\": \"2026-05-07\"\r\n                },\r\n                \"requester\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\",\r\n                    \"display\": \"Учреждение здравоохранения '1-я центральная районная клиническая поликлиника Центрального района г.Минска'\"\r\n                },\r\n                \"owner\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Врач-специалист, Филатов Игорь Петрович\"\r\n                },\r\n                \"performer\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Patient/{{pregnancyPatientId}}\",\r\n                            \"display\": \"Евдокимова Людмила Ивановна\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Provenance/def8dec1-c85d-4dba-a904-96042bca198f\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Provenance\",\r\n                \"id\": \"def8dec1-c85d-4dba-a904-96042bca198f\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ProvenanceDocumentInfoTD\"\r\n                    ]\r\n                },\r\n                \"target\": [\r\n                    {\r\n                        \"reference\": \"Patient/{{pregnancyPatientId}}\"\r\n                    }\r\n                ],\r\n                \"recorded\": \"2025-04-16T10:30:00Z\",\r\n                \"authorization\": [\r\n                    {\r\n                        \"reference\": {\r\n                            \"reference\": \"Task/f5735958-dac5-4c5a-9e27-d63f5da6a398\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/{{pregnancyPatientId}}\"\r\n                },\r\n                \"agent\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/AgentTypeProvenance\",\r\n                                    \"code\": \"organization\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"who\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\",\r\n                            \"display\": \"Учреждение здравоохранения '1-я центральная районная клиническая поликлиника Центрального района г.Минска'\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/AgentTypeProvenance\",\r\n                                    \"code\": \"practitioner\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"who\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                            \"display\": \"Филатов Игорь Петрович\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/AgentTypeProvenance\",\r\n                                    \"code\": \"practitionerRole\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"who\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                            \"display\": \"Врач-специалист, Филатов Игорь Петрович\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$validate",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Bundle",
                    "$validate"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Подписание (ЭЦП) импорта ЭЛН",
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      "const CryptoJS = require('crypto-js');\r",
                      "const data_raw1 = pm.environment.get('data_raw1');\r",
                      "const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw1));\r",
                      "pm.environment.set('data_base64', data_base64);\r",
                      "\r",
                      "// let compressedBundle = pm.environment.get(\"compressedBundle\");\r",
                      "// pm.environment.set('data_base64', compressedBundle);"
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "let responseJson = pm.response.json();\r",
                      "pm.environment.set(\"cmsValue\", responseJson.cms);"
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"data\": \"{{data_base64}}\",\r\n    \"isDetached\": \"false\"\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "http://localhost:8084/sign",
                  "protocol": "http",
                  "host": [
                    "localhost"
                  ],
                  "port": "8084",
                  "path": [
                    "sign"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Импорт подписанного ЭЛН",
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      "// const CryptoJS = require('crypto-js');\r",
                      "// const data_raw = pm.environment.get('data_raw');\r",
                      "// const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw));\r",
                      "// pm.environment.set('data_base64', data_base64);\r",
                      "\r",
                      "\r",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
                      "    pm.response.to.have.status(202);\r",
                      "});\r",
                      "\r",
                      "var jsonData = pm.response.json();\r",
                      "let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
                      "let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
                      "\r",
                      "console.log(statusReference.valueReference.reference);\r",
                      "\r",
                      "pm.collectionVariables.set(\"bundleId\", bundleId);\r",
                      "pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "protocolProfileBehavior": {
                "disabledSystemHeaders": {
                  "content-type": true
                }
              },
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/cms",
                    "type": "text"
                  },
                  {
                    "key": "X-Fhir-By-Version",
                    "value": "active",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "\"{{cmsValue}}\"",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Bundle",
                    "$import"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "получение статуса импорта пакета медицинской информации",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "content-type",
                    "value": "application/cms",
                    "type": "text",
                    "disabled": true
                  }
                ],
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Bundle",
                    "{{bundleId}}",
                    "$status"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "получение импортированного медицинского документа в формате JSON",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "protocolProfileBehavior": {
                "disabledSystemHeaders": {
                  "accept": true
                }
              },
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text",
                    "disabled": true
                  },
                  {
                    "key": "Accept",
                    "value": "text/html",
                    "type": "text"
                  },
                  {
                    "key": "Accept",
                    "value": "application/cms",
                    "type": "text",
                    "disabled": true
                  }
                ],
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Bundle",
                    "{{bundleId}}"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "получение импортированного медицинского документа элн",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "protocolProfileBehavior": {
                "disabledSystemHeaders": {
                  "accept": true
                }
              },
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text",
                    "disabled": true
                  },
                  {
                    "key": "Accept",
                    "value": "text/html",
                    "type": "text"
                  },
                  {
                    "key": "Accept",
                    "value": "application/cms",
                    "type": "text",
                    "disabled": true
                  }
                ],
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$get-bundle?identifier={{documentType}}-{{OrganizationUnp}}-{{tdSumIdentifier}}-01",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Bundle",
                    "$get-bundle"
                  ],
                  "query": [
                    {
                      "key": "identifier",
                      "value": "{{documentType}}-{{OrganizationUnp}}-{{tdSumIdentifier}}-01"
                    }
                  ]
                }
              },
              "response": []
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "packages": {},
                "requests": {},
                "exec": [
                  ""
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "packages": {},
                "requests": {},
                "exec": [
                  ""
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "CASE 2: Формирование ЭЛН по осложнениям",
      "item": [
        {
          "name": "предвариетельные условия",
          "item": [
            {
              "name": "Импорт Сведений о ВН",
              "item": [
                {
                  "name": "Валидация импорта Сведений о ВН",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "var compressedBundle = pm.request.body.raw;\r",
                          "\r",
                          "let organizationId = pm.environment.get(\"OrganizationId\");\r",
                          "let practitionerId = pm.environment.get(\"PractitionerId\");\r",
                          "let practitionerRoleId = pm.environment.get(\"PractitionerRoleId\");\r",
                          "let practitionerRoleHeadId = pm.environment.get(\"PractitionerRoleHeadId\");\r",
                          "let randomId = pm.variables.replaceIn(\"{{$guid}}\");\r",
                          "\r",
                          "compressedBundle = compressedBundle\r",
                          "    .replace(/{{OrganizationId}}/g, organizationId)\r",
                          "    .replace(/{{PractitionerId}}/g, practitionerId)    \r",
                          "    .replace(/{{PractitionerRoleId}}/g, practitionerRoleId)\r",
                          "    .replace(/{{randomGuid}}/g, randomId)\r",
                          "    .replace(/{{PractitionerRoleHeadId}}/g, practitionerRoleHeadId)\r",
                          "    .replace(/{{randomValue}}/g, Math.random().toString().replace(\".\",\"\"));\r",
                          "\r",
                          "compressedBundle = JSON.stringify(JSON.parse(compressedBundle));\r",
                          "pm.collectionVariables.set(\"compressedBundle\", compressedBundle);\r",
                          "pm.environment.set(\"data_raw1\", compressedBundle);\r",
                          "\r",
                          "console.log(compressedBundle)\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "X-Fhir-By-Version",
                        "value": "active",
                        "type": "text"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"4065cbb0-1ece-433d-8099-5482ae67bfe5\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"4047cbb0-8ece-433d-8099-5482ae67bfe8\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient3\",\r\n                        \"display\": \"Евдокимова Л.И.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataBoolean\",\r\n                                \"valueBoolean\": true\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataPeriod\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2024-08-01\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalData\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Евдокимова\",\r\n                        \"given\": [\r\n                            \"Людмила\",\r\n                            \"Ивановна\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"female\",\r\n                \"birthDate\": \"1996-02-28\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Гоголя, д.19\",\r\n                        \"postalCode\": \"212011\"\r\n                    }\r\n                ],\r\n                \"contact\": [\r\n                    {\r\n                        \"name\": {\r\n                            \"family\": \"Петров\",\r\n                            \"given\": [\r\n                                \"Иван\"\r\n                            ]\r\n                        },\r\n                        \"telecom\": [\r\n                            {\r\n                                \"system\": \"phone\",\r\n                                \"value\": \"80299099090\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleCasePregnancyCompl\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleCasePregnancyCompl\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2024-04-10T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\r\n                                    \"code\": \"09\",\r\n                                    \"display\": \"в связи с беременностью и родами, в том числе наступившими до 30 недель беременности (27 недель беременности - у женщин, постоянно (преимущественно) проживающих и (или) работающих, проходящих службу, обучающихся на территории радиоактивного загрязнения), осложнениями беременности, родов и (или) послеродового периода, а также усыновлением (удочерением), установлением опеки над ребенком в возрасте до 3 месяцев (беременность и роды)\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDiasabilityEncounterAction\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/SeakLeavePeriod\",\r\n                                    \"code\": \"close\",\r\n                                    \"display\": \"Закрытие случая\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"амбулаторный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TDCaseClosing\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TDCaseClosing\",\r\n                                    \"code\": \"1\",\r\n                                    \"display\": \"Пациент признан трудоспособным, или закрывается ЛН в связи с уходом за больным членом семьи\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\r\n                                    \"code\": \"1\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/HeadOfUnit\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleHeadId}}\",\r\n                            \"display\": \"заведующий отделением, Алешкевич Сергей Иванович\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"finished\",\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/TemporaryDisabilityReasonOfDisability\",\r\n                                    \"code\": \"85\",\r\n                                    \"display\": \"Отпуск по беременности и родам\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient3\",\r\n                    \"display\": \"Евдокимова Людмила Ивановна 28.02.1996 г.р.\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2026-05-08\",\r\n                    \"end\": \"2026-05-22\"\r\n                },\r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleHospitalisationPlan\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleHospitalisationPlan\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/Hospitalisation\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TreatmentOutcome\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/TreatmentOutcome\",\r\n                                            \"code\": \"3\",\r\n                                            \"display\": \"Выписка из стационара\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/BedProfiles\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/BedProfile\",\r\n                                            \"code\": \"short-pregnant\",\r\n                                            \"display\": \"для беременных и рожениц (кроме патологии беременности)\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/LocationUnitOfOrganization\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Location/d03d30c0-a0af-4581-80de-c7adddf851dd\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TreatmentPeriod\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2026-01-01\",\r\n                                    \"end\": \"2026-05-22\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/TreatingPractitioner\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HeadOfUnit\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/TreatmentInUnit\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyHospitalisationTerm\",\r\n                        \"valuePositiveInt\": 2\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HospitalisationPaidType\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/HospitalisationPaidType\",\r\n                                            \"code\": \"optional-insurance\",\r\n                                            \"display\": \"добровольное медицинское страхование\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/InsurancePolicyNumber\",\r\n                                        \"valueString\": \"AO39198215\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/DateIssueInsurancePolicy\",\r\n                                        \"valueDate\": \"2025-09-01\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PeriodTemporaryInsurancePolicy\",\r\n                                        \"valuePeriod\": {\r\n                                            \"start\": \"2026-01-01\",\r\n                                            \"end\": \"2027-12-01\"\r\n                                        }\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/InsuranceOrganization\",\r\n                                        \"valueString\": \"АГСРСтрах\"\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/HealthInsurance\"\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/HospitalisationPaid\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DiagnosisOfSendingOrganisation\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/SequenceNumbeHospitalisation\",\r\n                        \"valuePositiveInt\": 1\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"value\": \"123/5\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"waitlist\",\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"special\",\r\n                                \"display\": \"специализированная\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/HospitalisationReasonUse\",\r\n                                    \"code\": \"2\",\r\n                                    \"display\": \"Экстренная госпитализация\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": [\r\n                            {\r\n                                \"concept\": {\r\n                                    \"text\": \"Экстренная госпитализация\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Clinical\",\r\n                                    \"display\": \"Клинический диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\",\r\n                                    \"display\": \"Заключительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient3\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2026-05-07\",\r\n                    \"end\": \"2026-05-22\"\r\n                },\r\n                \"careManager\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/DiagnosisrFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"DiagnosisrFullBundle\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Final\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2026-05-08\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"O75\",\r\n                            \"display\": \"O75 - Другие осложнения родов и родоразрешения, не классифицированные в других рубриках\"\r\n                        }\r\n                    ],\r\n                    \"text\": \"Другие осложнения родов и родоразрешения, не классифицированные в других рубриках\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient3\"\r\n                },\r\n                \"onsetDateTime\": \"2026-05-07\",\r\n                \"recordedDate\": \"2026-05-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                            \"display\": \"Филатов И.А.\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Encounter/EncounterBundleForTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Encounter\",\r\n                \"id\": \"EncounterBundleForTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EncounterGeneral\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"class\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/VSTermsOfService\",\r\n                                \"code\": \"2\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"priority\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/HealthCareForms\",\r\n                            \"code\": \"emergency\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/TypeOfHealthCare\",\r\n                                \"code\": \"special\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient3\"\r\n                },\r\n                \"serviceProvider\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"actualPeriod\": {\r\n                    \"start\": \"2026-05-08T11:12:21Z\",\r\n                    \"end\": \"2026-05-08T11:25:21Z\"\r\n                },\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/DiagnosisrFullBundle\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"use\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                        \"code\": \"mainDiagnosis\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Flag/FlagTDCase7.2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Flag\",\r\n                \"id\": \"FlagTDCase7.2\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2023-04-10T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FlagTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DateFlagReason\",\r\n                        \"valueDate\": \"2026-05-22\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EpOCTDReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"EpisodeOfCare/ExampleCasePregnancyCompl\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/RequestFromOrganization\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"status\": \"active\",\r\n                \"code\": {\r\n                    \"extension\": [\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkPractitionerRole\",\r\n                            \"valueReference\": {\r\n                                \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                            }\r\n                        },\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkDate\",\r\n                            \"valueDate\": \"2026-05-07\"\r\n                        },\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/SpecialMarkOrganization\",\r\n                            \"valueReference\": {\r\n                                \"reference\": \"Organization/{{OrganizationId}}\"\r\n                            }\r\n                        }\r\n                    ],\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/FlagSpecialMarks\",\r\n                            \"code\": \"complicated-labor\",\r\n                            \"display\": \"осложненные роды\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/Patient3\",\r\n                    \"display\": \"Евдокимова Людмила Ивановна 28.02.1996 г.р.\"\r\n                },\r\n                \"author\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Лечащий врач Филатов И.А.\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Provenance/ExampleTDProvenance\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Provenance\",\r\n                \"id\": \"ExampleTDProvenance\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ProvenanceTemporaryDisability\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/OrganizationReference\",\r\n                        \"valueReference\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"target\": [\r\n                    {\r\n                        \"reference\": \"EpisodeOfCare/ExampleCasePregnancyCompl\"\r\n                    }\r\n                ],\r\n                \"recorded\": \"2026-05-22T10:30:00Z\",\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/Patient3\"\r\n                },\r\n                \"agent\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ProvenanceAgentStatus\",\r\n                                \"valueBoolean\": false\r\n                            }\r\n                        ],\r\n                        \"who\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleHeadId}}\"\r\n                        },\r\n                        \"onBehalfOf\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$validate",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "$validate"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Подписание (ЭЦП) импорта Сведений о ВН",
                  "event": [
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "const CryptoJS = require('crypto-js');\r",
                          "const data_raw1 = pm.environment.get('data_raw1');\r",
                          "const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw1));\r",
                          "pm.environment.set('data_base64', data_base64);\r",
                          "\r",
                          "// let compressedBundle = pm.environment.get(\"compressedBundle\");\r",
                          "// pm.environment.set('data_base64', compressedBundle);"
                        ],
                        "type": "text/javascript",
                        "packages": {}
                      }
                    },
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "let responseJson = pm.response.json();\r",
                          "pm.environment.set(\"cmsValue\", responseJson.cms);"
                        ],
                        "type": "text/javascript",
                        "packages": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "raw",
                      "raw": "{\r\n    \"data\": \"{{data_base64}}\",\r\n    \"isDetached\": \"false\"\r\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "http://localhost:8084/sign",
                      "protocol": "http",
                      "host": [
                        "localhost"
                      ],
                      "port": "8084",
                      "path": [
                        "sign"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Импорт подписанного документа",
                  "event": [
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "// const CryptoJS = require('crypto-js');\r",
                          "// const data_raw = pm.environment.get('data_raw');\r",
                          "// const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw));\r",
                          "// pm.environment.set('data_base64', data_base64);\r",
                          "\r",
                          "\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
                          "    pm.response.to.have.status(202);\r",
                          "});\r",
                          "\r",
                          "var jsonData = pm.response.json();\r",
                          "let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
                          "let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
                          "\r",
                          "console.log(statusReference.valueReference.reference);\r",
                          "\r",
                          "pm.collectionVariables.set(\"bundleId\", bundleId);\r",
                          "pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disabledSystemHeaders": {
                      "content-type": true
                    }
                  },
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/cms",
                        "type": "text"
                      },
                      {
                        "key": "X-Fhir-By-Version",
                        "value": "active",
                        "type": "text"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "\"{{cmsValue}}\"",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "$import"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "получение статуса импорта пакета медицинской информации",
                  "request": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "content-type",
                        "value": "application/cms",
                        "type": "text",
                        "disabled": true
                      }
                    ],
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "{{bundleId}}",
                        "$status"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "проверка сохранения Сведений о ВН в ЦИСЗ",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "var jsonData = pm.response.json();\r",
                          "let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
                          "\r",
                          "pm.collectionVariables.set(\"pregnancyTempDisProlong\", resourceId);\r",
                          "\r",
                          "console.log(resourceId)\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "GET",
                    "header": [],
                    "body": {
                      "mode": "raw",
                      "raw": ""
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{pregnancyPatientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability&patient={{pregnancyPatientId}}&date=2026-05-08",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Patient",
                        "{{pregnancyPatientId}}",
                        "EpisodeOfCare"
                      ],
                      "query": [
                        {
                          "key": "_profile",
                          "value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability"
                        },
                        {
                          "key": "patient",
                          "value": "{{pregnancyPatientId}}"
                        },
                        {
                          "key": "date",
                          "value": "2026-05-08"
                        }
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "проверка отсутствия изменения Случая ВН",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "GET",
                    "header": [],
                    "body": {
                      "mode": "raw",
                      "raw": ""
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{pregnancyPatientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{pregnancyPatientId}}&status=finished",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Patient",
                        "{{pregnancyPatientId}}",
                        "EpisodeOfCare"
                      ],
                      "query": [
                        {
                          "key": "_profile",
                          "value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
                        },
                        {
                          "key": "patient",
                          "value": "{{pregnancyPatientId}}"
                        },
                        {
                          "key": "status",
                          "value": "finished"
                        }
                      ]
                    }
                  },
                  "response": []
                }
              ],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {},
                    "exec": [
                      ""
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {},
                    "exec": [
                      ""
                    ]
                  }
                }
              ]
            },
            {
              "name": "Подписание ВН второй подписью",
              "item": [
                {
                  "name": "поиск Требования для подписи в контексте организации",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "var jsonData = pm.response.json();\r",
                          "let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"Provenance\").resource.id;\r",
                          "\r",
                          "pm.collectionVariables.set(\"pregnancyProvenance\", resourceId);\r",
                          "\r",
                          "console.log(resourceId)\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Organization/{{OrganizationId}}/Provenance?_profile=https://fhir.by/StructureDefinition/ProvenanceTemporaryDisability&target={{pregnancyTempDisProlong}}&agent={{PractitionerRoleHeadId}}&agent-status=false",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Organization",
                        "{{OrganizationId}}",
                        "Provenance"
                      ],
                      "query": [
                        {
                          "key": "_profile",
                          "value": "https://fhir.by/StructureDefinition/ProvenanceTemporaryDisability"
                        },
                        {
                          "key": "target",
                          "value": "{{pregnancyTempDisProlong}}"
                        },
                        {
                          "key": "agent",
                          "value": "{{PractitionerRoleHeadId}}"
                        },
                        {
                          "key": "agent-status",
                          "value": "false"
                        }
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "получение Сведений о ВН для подписания вторым лицом",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "var resource = pm.response.json();\r",
                          "\r",
                          "// Remove specific meta properties\r",
                          "if (resource.meta) {\r",
                          "    delete resource.meta.versionId;\r",
                          "    delete resource.meta.lastUpdated;\r",
                          "    delete resource.meta.source;\r",
                          "    delete resource.implicitRules;  \r",
                          "}\r",
                          "\r",
                          "resource.patient.reference = pm.collectionVariables.get(\"patientBundleReference\");\r",
                          "\r",
                          "pm.collectionVariables.set(\"pregnancyTempDis\", resource.id);\r",
                          "pm.collectionVariables.set(\"tdResource\", JSON.stringify(resource));\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{pregnancyPatientId}}/EpisodeOfCare/{{pregnancyTempDisProlong}}",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Patient",
                        "{{pregnancyPatientId}}",
                        "EpisodeOfCare",
                        "{{pregnancyTempDisProlong}}"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Валидация подписания Сведений о ВН вторым лицом",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "var compressedBundle = pm.request.body.raw;\r",
                          "\r",
                          "let organizationId = pm.environment.get(\"OrganizationId\");\r",
                          "let practitionerId = pm.environment.get(\"PractitionerId\");\r",
                          "let pregnancyTempDisProlong = pm.collectionVariables.get(\"pregnancyTempDisProlong\");\r",
                          "let tdResource = pm.collectionVariables.get(\"tdResource\");\r",
                          "let randomId = pm.variables.replaceIn(\"{{$guid}}\");\r",
                          "\r",
                          "compressedBundle = compressedBundle\r",
                          "    .replace(/{{OrganizationId}}/g, organizationId)\r",
                          "    .replace(/{{PractitionerId}}/g, practitionerId)    \r",
                          "    .replace(/{{pregnancyTempDisProlong}}/g, pregnancyTempDisProlong)\r",
                          "    .replace(/{{tdResource}}/g, tdResource)\r",
                          "    .replace(/{{randomGuid}}/g, randomId)\r",
                          "    .replace(/{{randomValue}}/g, Math.random().toString().replace(\".\",\"\"));\r",
                          "\r",
                          "compressedBundle = JSON.stringify(JSON.parse(compressedBundle));\r",
                          "pm.collectionVariables.set(\"compressedBundle\", compressedBundle);\r",
                          "pm.environment.set(\"data_raw1\", compressedBundle);\r",
                          "\r",
                          "console.log(compressedBundle)"
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disabledSystemHeaders": {}
                  },
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/cms",
                        "type": "text",
                        "disabled": true
                      },
                      {
                        "key": "X-Fhir-By-Version",
                        "value": "active",
                        "type": "text"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleFull\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://fhir.by/ValueSet/urn:ietf:rfc:3986\",\r\n        \"value\": \"4146cbb1-8ece-433d-8099-5482ae37bfe6\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2024-04-07T11:12:21Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionFullBundle\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"4047cbb0-8ece-433d-8099-5482ae67bfe8\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/Patient3\",\r\n                        \"display\": \"Евдокимова Л.И.\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-07-22T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов И.А.\"\r\n                    }\r\n                ],\r\n                \"title\": \"Discharge Summary\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/Patient3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"Patient3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataBoolean\",\r\n                                \"valueBoolean\": true\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataPeriod\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2024-08-01\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalData\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    },\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Евдокимова\",\r\n                        \"given\": [\r\n                            \"Людмила\",\r\n                            \"Ивановна\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \r\n                \"gender\": \"female\",\r\n                \"birthDate\": \"1996-02-28\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Гоголя, д.19\",\r\n                        \"postalCode\": \"212011\"\r\n                    }\r\n                ],\r\n                \"contact\": [\r\n                    {\r\n                        \"name\": {\r\n                            \"family\": \"Петров\",\r\n                            \"given\": [\r\n                                \"Иван\"\r\n                            ]\r\n                        },\r\n                        \"telecom\": [\r\n                            {\r\n                                \"system\": \"phone\",\r\n                                \"value\": \"80299099090\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/{{pregnancyTempDisProlong}}\",\r\n            \"resource\": {{tdResource}}\r\n        }\r\n    ]\r\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$validate",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "$validate"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Подписание (ЭЦП) второй подписью Сведений о ВН",
                  "event": [
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "const CryptoJS = require('crypto-js');\r",
                          "const data_raw1 = pm.environment.get('data_raw1');\r",
                          "const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw1));\r",
                          "pm.environment.set('data_base64', data_base64);\r",
                          "\r",
                          "// let compressedBundle = pm.environment.get(\"compressedBundle\");\r",
                          "// pm.environment.set('data_base64', compressedBundle);"
                        ],
                        "type": "text/javascript",
                        "packages": {}
                      }
                    },
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "let responseJson = pm.response.json();\r",
                          "pm.environment.set(\"cmsValue\", responseJson.cms);"
                        ],
                        "type": "text/javascript",
                        "packages": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "raw",
                      "raw": "{\r\n    \"data\": \"{{data_base64}}\",\r\n    \"isDetached\": \"false\"\r\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "http://localhost:8084/sign",
                      "protocol": "http",
                      "host": [
                        "localhost"
                      ],
                      "port": "8084",
                      "path": [
                        "sign"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Импорт подписанного документа",
                  "event": [
                    {
                      "listen": "prerequest",
                      "script": {
                        "exec": [
                          "// const CryptoJS = require('crypto-js');\r",
                          "// const data_raw = pm.environment.get('data_raw');\r",
                          "// const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw));\r",
                          "// pm.environment.set('data_base64', data_base64);\r",
                          "\r",
                          "\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    },
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
                          "    pm.response.to.have.status(202);\r",
                          "});\r",
                          "\r",
                          "var jsonData = pm.response.json();\r",
                          "let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
                          "let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
                          "\r",
                          "console.log(statusReference.valueReference.reference);\r",
                          "\r",
                          "pm.collectionVariables.set(\"bundleId\", bundleId);\r",
                          "pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
                          ""
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disabledSystemHeaders": {
                      "content-type": true
                    }
                  },
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/cms",
                        "type": "text"
                      },
                      {
                        "key": "X-Fhir-By-Version",
                        "value": "active",
                        "type": "text"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "\"{{cmsValue}}\"",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "$import"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "получение статуса импорта пакета медицинской информации",
                  "request": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "content-type",
                        "value": "application/cms",
                        "type": "text",
                        "disabled": true
                      }
                    ],
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Bundle",
                        "{{bundleId}}",
                        "$status"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "проверка сохранения изменений в Случай ВН",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "var jsonData = pm.response.json();\r",
                          "let EpisodeOfCareVN = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource.id;\r",
                          "\r",
                          "pm.collectionVariables.set(\"EpisodeOfCareVN\", EpisodeOfCareVN);\r",
                          "console.log(EpisodeOfCareVN)"
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "GET",
                    "header": [],
                    "body": {
                      "mode": "raw",
                      "raw": ""
                    },
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{pregnancyPatientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{pregnancyPatientId}}",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Patient",
                        "{{pregnancyPatientId}}",
                        "EpisodeOfCare"
                      ],
                      "query": [
                        {
                          "key": "_profile",
                          "value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
                        },
                        {
                          "key": "patient",
                          "value": "{{pregnancyPatientId}}"
                        }
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "проверка сохранения подписи Требования",
                  "event": [
                    {
                      "listen": "test",
                      "script": {
                        "exec": [
                          "var jsonData = pm.response.json();\r",
                          "let resourceId = jsonData.entry.find(obj => obj.resource.resourceType === \"Provenance\").resource.id;\r",
                          "\r",
                          "pm.collectionVariables.set(\"pregnancyProvenance\", resourceId);\r",
                          "\r",
                          "console.log(resourceId)"
                        ],
                        "type": "text/javascript",
                        "packages": {},
                        "requests": {}
                      }
                    }
                  ],
                  "request": {
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{Schema}}://{{Proxy-host}}/fhir/Organization/{{OrganizationId}}/Provenance?_profile=https://fhir.by/StructureDefinition/ProvenanceTemporaryDisability&target={{pregnancyTempDisProlong}}",
                      "protocol": "{{Schema}}",
                      "host": [
                        "{{Proxy-host}}"
                      ],
                      "path": [
                        "fhir",
                        "Organization",
                        "{{OrganizationId}}",
                        "Provenance"
                      ],
                      "query": [
                        {
                          "key": "_profile",
                          "value": "https://fhir.by/StructureDefinition/ProvenanceTemporaryDisability"
                        },
                        {
                          "key": "target",
                          "value": "{{pregnancyTempDisProlong}}"
                        }
                      ]
                    }
                  },
                  "response": []
                }
              ],
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {},
                    "exec": [
                      ""
                    ]
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {},
                    "exec": [
                      ""
                    ]
                  }
                }
              ]
            }
          ]
        },
        {
          "name": "Импорт ЭЛН",
          "item": [
            {
              "name": "поиск Случая ВН для формирования ЭЛН",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "var jsonData = pm.response.json();\r",
                      "let resource = jsonData.entry.find(obj => obj.resource.resourceType === \"EpisodeOfCare\").resource;\r",
                      "\r",
                      "// Remove specific meta properties\r",
                      "if (resource.meta) {\r",
                      "    delete resource.meta.versionId;\r",
                      "    delete resource.meta.lastUpdated;\r",
                      "    delete resource.meta.source; \r",
                      "    delete resource.implicitRules;\r",
                      "}\r",
                      "\r",
                      "pm.collectionVariables.set(\"pregnancyTempDisSum\", resource.id);\r",
                      "pm.collectionVariables.set(\"tdSumResource\", JSON.stringify(resource));\r",
                      "\r",
                      "let identifier = resource.identifier[0].value;\r",
                      "pm.collectionVariables.set(\"tdSumIdentifier\", identifier);\r",
                      "\r",
                      "console.log(JSON.stringify(resource))"
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "GET",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": ""
                },
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{pregnancyPatientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum&patient={{pregnancyPatientId}}&_sort=-_lastUpdated",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Patient",
                    "{{pregnancyPatientId}}",
                    "EpisodeOfCare"
                  ],
                  "query": [
                    {
                      "key": "_profile",
                      "value": "https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum"
                    },
                    {
                      "key": "patient",
                      "value": "{{pregnancyPatientId}}"
                    },
                    {
                      "key": "_sort",
                      "value": "-_lastUpdated"
                    }
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Валидация импорта ЭЛН",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      "var compressedBundle = pm.request.body.raw;\r",
                      "\r",
                      "let organizationId = pm.environment.get(\"OrganizationId\");\r",
                      "let practitionerId = pm.environment.get(\"PractitionerId\");\r",
                      "let documentType = pm.environment.get(\"documentType\");\r",
                      "let unp = pm.environment.get(\"OrganizationUnp\");\r",
                      "let identifier = pm.collectionVariables.get(\"tdSumIdentifier\");\r",
                      "let patientId = pm.collectionVariables.get(\"pregnancyPatientId\");\r",
                      "let tdSum = pm.collectionVariables.get(\"pregnancyTempDisSum\");\r",
                      "let practitionerRoleId = pm.environment.get(\"PractitionerRoleId\");\r",
                      "let tdSumResource = pm.collectionVariables.get(\"tdSumResource\");\r",
                      "let tempDisabilityCMS = pm.collectionVariables.get(\"pregnancyTempDisSumCMS\");\r",
                      "let randomId = pm.variables.replaceIn(\"{{$guid}}\");\r",
                      "\r",
                      "compressedBundle = compressedBundle\r",
                      "    .replace(/{{OrganizationId}}/g, organizationId)\r",
                      "    .replace(/{{PractitionerId}}/g, practitionerId)\r",
                      "    .replace(/{{documentType}}/g, documentType)\r",
                      "    .replace(/{{OrganizationUnp}}/g, unp)\r",
                      "    .replace(/{{tdSumIdentifier}}/g, identifier)\r",
                      "    .replace(/{{pregnancyPatientId}}/g, patientId)\r",
                      "    .replace(/{{pregnancyTempDisSum}}/g, tdSum)\r",
                      "    .replace(/{{PractitionerRoleId}}/g, practitionerRoleId)\r",
                      "    .replace(/{{tdSumResource}}/g, tdSumResource)\r",
                      "    .replace(/{{pregnancyTempDisSumCMS}}/g, tempDisabilityCMS)\r",
                      "    .replace(/{{randomGuid}}/g, randomId)\r",
                      "    .replace(/{{randomValue}}/g, Math.random().toString().replace(\".\",\"\"));\r",
                      "\r",
                      "compressedBundle = JSON.stringify(JSON.parse(compressedBundle));\r",
                      "pm.collectionVariables.set(\"compressedBundle\", compressedBundle);\r",
                      "pm.environment.set(\"data_raw1\", compressedBundle);\r",
                      "\r",
                      "console.log(compressedBundle)"
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "protocolProfileBehavior": {
                "disabledSystemHeaders": {}
              },
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/cms",
                    "type": "text",
                    "disabled": true
                  },
                  {
                    "key": "X-Fhir-By-Version",
                    "value": "active",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"4047cbb0-8ece-433d-8099-7s482ae67bfe8\",\r\n    \"meta\": {\r\n        \"lastUpdated\": \"2024-02-01T10:30:00Z\",\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/BundleTD\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"https://minzdrav.gov.by\",\r\n        \"value\": \"{{documentType}}-{{OrganizationUnp}}-{{tdSumIdentifier}}-02\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"2025-04-17T10:30:00Z\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/f1779376-3a50-4917-8b70-f25a7b8c4c8c\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"f1779376-3a50-4917-8b70-f25a7b8c4c8c\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/DocumentTD\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/DigitalDocumentKind\",\r\n                            \"code\": \"01\",\r\n                            \"display\": \"Электронный лист нетрудоспособности\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/{{pregnancyPatientId}}\",\r\n                        \"display\": \"Евдокимова Людмила Ивановна\"\r\n                    }\r\n                ],\r\n                \"date\": \"2024-02-01T10:30:00Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                        \"display\": \"Филатов Игорь Петрович\"\r\n                    }\r\n                ],\r\n                \"title\": \"Структура ЭЛН\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\",\r\n                    \"display\": \"Учреждение здравоохранения '1-я центральная районная клиническая поликлиника Центрального района г.Минска'\"\r\n                },\r\n                \"event\": [\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"EpisodeOfCare/{{pregnancyTempDisSum}}\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Task/f5735958-dac5-4c5a-9e27-d63f5da6a398\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Provenance/def8dec1-c85d-4dba-a904-96042bca198f\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/pc-8eedee99-1909-4d17-93bf-b8ffb0c5e580\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"pc-8eedee99-1909-4d17-93bf-b8ffb0c5e580\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2025-07-23T16:00:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientED\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/DocumentKind\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/DigitalDocumentKind\",\r\n                                    \"code\": \"01\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"IPA\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7150892A001PB9\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Евдокимова\",\r\n                        \"given\": [\r\n                            \"Людмила\",\r\n                            \"Ивановна\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"birthDate\": \"1988-04-21\",\r\n                \"link\": [\r\n                    {\r\n                        \"other\": {\r\n                            \"reference\": \"Patient/{{pregnancyPatientId}}\"\r\n                        },\r\n                        \"type\": \"refer\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/{{pregnancyTempDisSum}}\",\r\n            \"resource\": {{tdSumResource}}\r\n        },\r\n        {\r\n            \"fullUrl\": \"Task/f5735958-dac5-4c5a-9e27-d63f5da6a398\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Task\",\r\n                \"id\": \"f5735958-dac5-4c5a-9e27-d63f5da6a398\",\r\n                \"meta\": {\r\n                    \"lastUpdated\": \"2024-04-16T10:30:00Z\",\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeToBePaid\"\r\n                    ]\r\n                },\r\n                \"basedOn\": [\r\n                    {\r\n                        \"reference\": \"EpisodeOfCare/{{pregnancyTempDisSum}}\"\r\n                    }\r\n                ],\r\n                \"status\": \"requested\",\r\n                \"intent\": \"order\",\r\n                \"for\": {\r\n                    \"reference\": \"Patient/pc-8eedee99-1909-4d17-93bf-b8ffb0c5e580\",\r\n                    \"display\": \"Евдокимова Людмила Ивановна\"\r\n                },\r\n                \"executionPeriod\": {\r\n                    \"start\": \"2026-05-08\",\r\n                    \"end\": \"2026-05-22\"\r\n                },\r\n                \"requester\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\",\r\n                    \"display\": \"Учреждение здравоохранения '1-я центральная районная клиническая поликлиника Центрального района г.Минска'\"\r\n                },\r\n                \"owner\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                    \"display\": \"Врач-специалист, Филатов Игорь Петрович\"\r\n                },\r\n                \"performer\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"Patient/{{pregnancyPatientId}}\",\r\n                            \"display\": \"Евдокимова Людмила Ивановна\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Provenance/def8dec1-c85d-4dba-a904-96042bca198f\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Provenance\",\r\n                \"id\": \"def8dec1-c85d-4dba-a904-96042bca198f\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ProvenanceDocumentInfoTD\"\r\n                    ]\r\n                },\r\n                \"target\": [\r\n                    {\r\n                        \"reference\": \"Patient/{{pregnancyPatientId}}\"\r\n                    }\r\n                ],\r\n                \"recorded\": \"2025-04-16T10:30:00Z\",\r\n                \"authorization\": [\r\n                    {\r\n                        \"reference\": {\r\n                            \"reference\": \"Task/f5735958-dac5-4c5a-9e27-d63f5da6a398\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/{{pregnancyPatientId}}\"\r\n                },\r\n                \"agent\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/AgentTypeProvenance\",\r\n                                    \"code\": \"organization\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"who\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\",\r\n                            \"display\": \"Учреждение здравоохранения '1-я центральная районная клиническая поликлиника Центрального района г.Минска'\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/AgentTypeProvenance\",\r\n                                    \"code\": \"practitioner\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"who\": {\r\n                            \"reference\": \"Practitioner/{{PractitionerId}}\",\r\n                            \"display\": \"Филатов Игорь Петрович\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/AgentTypeProvenance\",\r\n                                    \"code\": \"practitionerRole\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"who\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRoleId}}\",\r\n                            \"display\": \"Врач-специалист, Филатов Игорь Петрович\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        }\r\n    ]\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$validate",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Bundle",
                    "$validate"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Подписание (ЭЦП) импорта ЭЛН",
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      "const CryptoJS = require('crypto-js');\r",
                      "const data_raw1 = pm.environment.get('data_raw1');\r",
                      "const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw1));\r",
                      "pm.environment.set('data_base64', data_base64);\r",
                      "\r",
                      "// let compressedBundle = pm.environment.get(\"compressedBundle\");\r",
                      "// pm.environment.set('data_base64', compressedBundle);"
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "let responseJson = pm.response.json();\r",
                      "pm.environment.set(\"cmsValue\", responseJson.cms);"
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"data\": \"{{data_base64}}\",\r\n    \"isDetached\": \"false\"\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "http://localhost:8084/sign",
                  "protocol": "http",
                  "host": [
                    "localhost"
                  ],
                  "port": "8084",
                  "path": [
                    "sign"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Импорт подписанного ЭЛН",
              "event": [
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      "// const CryptoJS = require('crypto-js');\r",
                      "// const data_raw = pm.environment.get('data_raw');\r",
                      "// const data_base64 = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data_raw));\r",
                      "// pm.environment.set('data_base64', data_base64);\r",
                      "\r",
                      "\r",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
                      "    pm.response.to.have.status(202);\r",
                      "});\r",
                      "\r",
                      "var jsonData = pm.response.json();\r",
                      "let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
                      "let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
                      "\r",
                      "console.log(statusReference.valueReference.reference);\r",
                      "\r",
                      "pm.collectionVariables.set(\"bundleId\", bundleId);\r",
                      "pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "protocolProfileBehavior": {
                "disabledSystemHeaders": {
                  "content-type": true
                }
              },
              "request": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/cms",
                    "type": "text"
                  },
                  {
                    "key": "X-Fhir-By-Version",
                    "value": "active",
                    "type": "text"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "\"{{cmsValue}}\"",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$import",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Bundle",
                    "$import"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "получение статуса импорта пакета медицинской информации",
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "content-type",
                    "value": "application/cms",
                    "type": "text",
                    "disabled": true
                  }
                ],
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}/$status",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Bundle",
                    "{{bundleId}}",
                    "$status"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "получение импортированного медицинского документа в формате JSON",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "protocolProfileBehavior": {
                "disabledSystemHeaders": {
                  "accept": true
                }
              },
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text"
                  },
                  {
                    "key": "Accept",
                    "value": "text/html",
                    "type": "text",
                    "disabled": true
                  },
                  {
                    "key": "Accept",
                    "value": "application/cms",
                    "type": "text",
                    "disabled": true
                  }
                ],
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Bundle",
                    "{{bundleId}}"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "получение импортированного медицинского документа элн HTML",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "protocolProfileBehavior": {
                "disabledSystemHeaders": {
                  "accept": true
                }
              },
              "request": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json",
                    "type": "text",
                    "disabled": true
                  },
                  {
                    "key": "Accept",
                    "value": "text/html",
                    "type": "text"
                  },
                  {
                    "key": "Accept",
                    "value": "application/cms",
                    "type": "text",
                    "disabled": true
                  }
                ],
                "url": {
                  "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$get-bundle?identifier={{documentType}}-{{OrganizationUnp}}-{{tdSumIdentifier}}-02",
                  "protocol": "{{Schema}}",
                  "host": [
                    "{{Proxy-host}}"
                  ],
                  "path": [
                    "fhir",
                    "Bundle",
                    "$get-bundle"
                  ],
                  "query": [
                    {
                      "key": "identifier",
                      "value": "{{documentType}}-{{OrganizationUnp}}-{{tdSumIdentifier}}-02"
                    }
                  ]
                }
              },
              "response": []
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "packages": {},
                "requests": {},
                "exec": [
                  ""
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "packages": {},
                "requests": {},
                "exec": [
                  ""
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "CASE 3: Получение визуального представления случая временной нетрудоспособности",
      "item": [
        {
          "name": "проверка получения случая вн в формате html",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "text/html",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": ""
            },
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Patient/{{pregnancyPatientId}}/EpisodeOfCare/{{EpisodeOfCareVN}}",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Patient",
                "{{pregnancyPatientId}}",
                "EpisodeOfCare",
                "{{EpisodeOfCareVN}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "CASE 4: Получение визуального представления ЭЛН",
      "item": [
        {
          "name": "поиск ЭЛН по идентификатору",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/cms",
                "type": "text",
                "disabled": true
              },
              {
                "key": "Content-Type",
                "value": "application/cms",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "text/html",
                "type": "text",
                "disabled": true
              },
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle?_profile=https://fhir.by/AbstractArea/StructureDefinition/Bundle/BundleTD&identifier={{documentType}}-{{OrganizationUnp}}-{{tdSumIdentifier}}-02",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle"
              ],
              "query": [
                {
                  "key": "_profile",
                  "value": "https://fhir.by/AbstractArea/StructureDefinition/Bundle/BundleTD"
                },
                {
                  "key": "identifier",
                  "value": "{{documentType}}-{{OrganizationUnp}}-{{tdSumIdentifier}}-02"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "получение ЭЛН по Id",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "text/html",
                "type": "text",
                "disabled": true
              },
              {
                "key": "Accept",
                "value": "application/cms",
                "type": "text",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/{{bundleId}}",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "{{bundleId}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "получение ЭЛН по операции get-bundle",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "protocolProfileBehavior": {
            "disabledSystemHeaders": {
              "accept": true
            }
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text",
                "disabled": true
              },
              {
                "key": "Accept",
                "value": "text/html",
                "type": "text"
              },
              {
                "key": "Accept",
                "value": "application/cms",
                "type": "text",
                "disabled": true
              }
            ],
            "url": {
              "raw": "{{Schema}}://{{Proxy-host}}/fhir/Bundle/$get-bundle?identifier={{documentType}}-{{OrganizationUnp}}-{{tdSumIdentifier}}-02",
              "protocol": "{{Schema}}",
              "host": [
                "{{Proxy-host}}"
              ],
              "path": [
                "fhir",
                "Bundle",
                "$get-bundle"
              ],
              "query": [
                {
                  "key": "identifier",
                  "value": "{{documentType}}-{{OrganizationUnp}}-{{tdSumIdentifier}}-02"
                }
              ]
            }
          },
          "response": []
        }
      ]
    }
  ],
  "auth": {
    "type": "oauth2",
    "oauth2": [
      {
        "key": "client_authentication",
        "value": "body",
        "type": "string"
      },
      {
        "key": "scope",
        "value": "profile email acr realm roles term_client_credentials-dedicated",
        "type": "string"
      },
      {
        "key": "clientId",
        "value": "iehr.swagger.client",
        "type": "string"
      },
      {
        "key": "accessTokenUrl",
        "value": "https://staging.cisz.by/auth/api/realms/iehr/token",
        "type": "string"
      },
      {
        "key": "authUrl",
        "value": "https://staging.cisz.by/auth/api/realms/iehr/auth",
        "type": "string"
      },
      {
        "key": "redirect_uri",
        "value": "https://oauth.pstmn.io/v1/callback",
        "type": "string"
      },
      {
        "key": "grant_type",
        "value": "authorization_code_with_pkce",
        "type": "string"
      },
      {
        "key": "addTokenTo",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          "const schema = pm.collectionVariables.get('Schema')\r",
          "const host = pm.collectionVariables.get('Proxy-host');\r",
          "\r",
          "pm.sendRequest(`${schema}://${host}/fhir/metadata`, function (err, res) {\r",
          "    if (!err) {\r",
          "        var jsonData = res.json();\r",
          "        var activeImplementationGuide = jsonData.implementationGuide.filter(x => x.includes('Deprecated'));\r",
          "        \r",
          "        // Extracting the version from the active guide URL\r",
          "        if (activeImplementationGuide.length > 0) {\r",
          "            var versionMatch = activeImplementationGuide[0].match(/\\/(\\d+\\.\\d+\\.\\d+)\\?/);\r",
          "            console.log(versionMatch[1]);s\r",
          "            if (versionMatch) {\r",
          "                pm.request.headers.add({key: 'X-Fhir-By-Version', value: versionMatch[2]});\r",
          "            }\r",
          "        }\r",
          "    }\r",
          "});\r",
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "requests": {},
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "cms",
      "value": "MIIuRAYJKoZIhvcNAQcCoIIuNTCCLjECAQExDzANBgkqcAACACJlH1EFADCCJgMGCSqGSIb3DQEHAaCCJfQEgiXweyJyZXNvdXJjZVR5cGUiOiJCdW5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GD0LHQu9C40LrQsNC90YHQutC+0LUg0YPQvdC40YLQsNGA0L3QvtC1INC/0YDQtdC00L/RgNC40Y/RgtC40LUgItCd0LDRhtC40L7QvdCw0LvRjNC90YvQuSDRhtC10L3RgtGAINGN0LvQtdC60YLRgNC+0L3QvdGL0YUg0YPRgdC70YPQsyIxXjBcBgNVBAMMVdCg0LXRgdC/0YPQsdC70LjQutCw0L3RgdC60LjQuSDRg9C00L7RgdGC0L7QstC10YDRj9GO0YnQuNC5INGG0LXQvdGC0YAg0JPQvtGB0KHQo9Ce0JoxCzAJBgNVBAYTAkJZMRcwFQYDVQQIDA7QnNC40L3RgdC60LDRjzEXMBUGA1UEBwwO0LMuINCc0LjQvdGB0LoxJTAjBgNVBAkMHNC/0YAt0YIg0JzQsNGI0LXRgNC+0LLQsCwgMjUxHTAbBgkqhkiG9w0BCQEWDnJjYUBwa2kuZ292LmJ5AgxA5m5Qzm4xBgAuG2MwDQYJKnAAAgAiZR9RBQCgaTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0yNTEwMTMxNDU3NDJaMC8GCSqGSIb3DQEJBDEiBCBD+++15duaAU3JNA1XvnMbDh/qnzyRckUpXe6N3zOVmjAOBgoqcAACACJlLQIBBQAEMJH5Yn1h+V+4GUFdQtscGUi3FuIEuyEppd/rBhqThzvNAZEaB4Roent1SFJp0WcT4Q=="
    },
    {
      "key": "report",
      "value": "\"<!DOCTYPE html>\\n<html lang=\\\"ru\\\">\\n  <head>\\n    <link rel=\\\"preconnect\\\" href=\\\"https://fonts.googleapis.com\\\">\\n    <link rel=\\\"preconnect\\\" href=\\\"https://fonts.gstatic.com\\\" crossorigin>\\n    <link href=\\\"https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap\\\" rel=\\\"stylesheet\\\">\\n    <meta charset=\\\"UTF-8\\\" />\\n    <title>Электронный листок нетрудоспособности</title>\\n     <style>\\n      body {\\n        font-family: \\\"Open Sans\\\", Arial, sans-serif;\\n        background-color: #fff;\\n        color: #18212F;\\n        margin: 0;\\n        padding: 0px;\\n\\tletter-spacing: -0.2px;\\n      }\\n\\n      .container {\\n        max-width: 1024px;\\n        margin: auto;\\n        border: 2px solid #005cb9;\\n        padding: 20px;\\n        box-sizing: border-box;\\n      }\\n\\n      h1 {\\n        text-align: center;\\n        color: #145EB0;\\n        font-size: 16pt;\\n        margin-bottom: 16px;\\n\\tmargin-top: 0px;\\n      }\\n\\n      .eln-header {\\n        display: flex;\\n        justify-content: space-between;\\n        align-items: center;\\n        font-weight: bold;\\n        margin-bottom: 16px;\\n      }\\n\\n      .eln-header .number {\\n        color: #F7776A;\\n      }\\n\\n      .eln-header .date {\\n        color: #18212F;\\n      }\\n\\n      .section {\\n        margin-bottom: 12px;\\n      }\\n\\n      .section-title {\\n        background-color: #145EB0;\\n        color: #fff;\\n        padding: 2px 10px;\\n        font-weight: bold;\\n        font-size: 8pt;\\n        width: fit-content;\\n      }\\n\\n      table {\\n        width: 100%;\\n        border-collapse: collapse;\\n        margin-top: 0px;\\n        table-layout: fixed;\\n      }\\n\\n      td,\\n      th {\\n        border: 1px solid rgba(20, 94, 176, 0.3); /* 30% непрозрачности */\\n        padding: 2px 10px;\\n        font-size: 10.5px;\\n        vertical-align: top;\\n      }\\n\\n      th {\\n        background-color: #F1F7FE;\\n        text-align: left;\\n      }\\n\\n      th.fixed-width {\\n        width: 220px;\\n        white-space: nowrap;\\n      }\\n\\n\\tspan{\\n\\tfont-size: 10.5px;\\n\\tfont-weight:600;\\n\\t}\\n\\n    </style>\\n  </head>\\n  <body>\\n    <div class=\\\"container\\\">\\n      <h1>ЭЛЕКТРОННЫЙ ЛИСТОК НЕТРУДОСПОБНОСТИ</h1>\\n\\n      <div class=\\\"eln-header\\\">\\n        <div class=\\\"number\\\">01-193605729-2025000000000221-01</div>\\n        <div class=\\\"date\\\">Дата выдачи: 2025.04.17</div>\\n      </div>\\n\\n      <div class=\\\"section\\\">\\n        <div class=\\\"section-title\\\">СВЕДЕНИЯ О ВРЕМЕННО НЕТРУДОСПОСОБНОМ</div>\\n        <table>\\n          <colgroup>\\n            <col style=\\\"width: 235px\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n          </colgroup>\\n          <tr>\\n            <th>ФИО</th>\\n            <td colspan=\\\"3\\\">Евдокимова, Людмила, Ивановна</td>\\n          </tr>\\n          <tr>\\n            <th>ИЛС</th>\\n            <td>7150892A001PB9</td>\\n            <th>Дата рождения</th>\\n            <td>1988.04.21</td>\\n          </tr>\\n        </table>\\n      </div>\\n\\n      <div class=\\\"section\\\">\\n        <div class=\\\"section-title\\\">ОРГАНИЗАЦИЯ ЗДРАВООХРАНЕНИЯ</div>\\n        <table>\\n          <colgroup>\\n            <col style=\\\"width: 235px\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n          </colgroup>\\n          <tr>\\n            <th>Наименование</th>\\n            <td colspan=\\\"3\\\">Учреждение здравоохранения '1-я центральная районная клиническая поликлиника Центрального района г.Минска'</td>\\n          </tr>\\n          <tr>\\n            <th>УНП</th>\\n            <td colspan=\\\"3\\\">193605729</td>\\n          </tr>\\n        </table>\\n      </div>\\n\\n      <div class=\\\"section\\\">\\n        <div class=\\\"section-title\\\">ОСНОВНАЯ ИНФОРМАЦИЯ</div>\\n        <table>\\n          <colgroup>\\n            <col style=\\\"width: 235px\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n          </colgroup>\\n          <tr>\\n            <th>Дата начала случая ВН</th>\\n            <td>2026.02.01</td>\\n            <th>Оплачиваемый период</th>\\n            <td>2026.02.01, 2026.02.14</td>\\n          </tr>\\n          <tr>\\n            <th>Заключение о трудоспособности</th>\\n            <td>1</td>\\n            <th>Приступить к работе (службе, учебе)</th>\\n            <td></td>\\n          </tr>\\n        </table>\\n      </div>\\n\\n      <div class=\\\"section\\\">\\n        <div class=\\\"section-title\\\">ПЕРИОДЫ ОСВОБОЖДЕНИЯ ОТ РАБОТЫ (СЛУЖБЫ, УЧЕБЫ)</div>\\n        <table>\\n          <colgroup>\\n            <col style=\\\"width: 235px\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n          </colgroup>\\n          <tr>\\n            <th>Период</th>\\n            <td>2026.02.01-2026.02.14</td>\\n            <th>Сведения об оплате</th>\\n            <td>1</td>\\n          </tr>\\n          <tr>\\n            <th>Вид ВН</th>\\n            <td>09</td>\\n            <th>Режим ВН</th>\\n            <td>1</td>\\n          </tr>\\n          <tr>\\n            <th>ФИО медицинского работника</th>\\n            <td colspan=\\\"3\\\">Царенко Сергей Владимирович. Врач-аллерголог-иммунолог</td>\\n          </tr>\\n          <tr>\\n            <th>Должность медицинского работника *</th>\\n            <td colspan=\\\"3\\\">Царенко Сергей Владимирович. Врач-аллерголог-иммунолог</td>\\n          </tr>\\n          <tr>\\n            <th>ФИО руководителя</th>\\n            <td colspan=\\\"3\\\">Свиридович Виктория Геннадьевна. Врач авиационный</td>\\n          </tr>\\n          <tr>\\n            <th>Должность руководителя *</th>\\n            <td colspan=\\\"3\\\">Свиридович Виктория Геннадьевна. Врач авиационный</td>\\n          </tr>\\n          <tr>\\n            <th>Организация здравоохранения</th>\\n            <td colspan=\\\"3\\\">Открытое акционерное общество \\\"Агентство сервисизации и реинжиниринга\\\"</td>\\n          </tr>\\n        </table>\\n      </div>\\n\\n      <div class=\\\"section\\\">\\n        <div class=\\\"section-title\\\">ВКК</div>\\n        <table>\\n          <colgroup>\\n            <col style=\\\"width: 235px\\\" />\\n            <col style=\\\"width: auto\\\" />\\n          </colgroup>\\n          <tr>\\n            <th>ФИО председателя</th>\\n            <td></td>\\n          </tr>\\n          <tr>\\n            <th>Дата</th>\\n            <td></td>\\n          </tr>\\n        </table>\\n      </div>\\n\\n      <div class=\\\"section\\\">\\n        <div class=\\\"section-title\\\">МРЭК</div>\\n        <table>\\n          <colgroup>\\n            <col style=\\\"width: 235px\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n          </colgroup>\\n          <tr>\\n            <th>ФИО председателя</th>\\n            <td colspan=\\\"3\\\"></td>\\n          </tr>\\n          <tr>\\n            <th>Дата начала МСЭ</th>\\n            <td></td>\\n            <th>Дата окончания МСЭ</th>\\n            <td></td>\\n          </tr>\\n          <tr>\\n            <th>Заключение МРЭК</th>\\n            <td colspan=\\\"3\\\"></td>\\n          </tr>         \\n        </table>\\n      </div>\\n\\n      <div class=\\\"section\\\">\\n        <div class=\\\"section-title\\\">ОСОБЫЕ ОТМЕТКИ</div>\\n        <table>\\n          <colgroup>\\n            <col style=\\\"width: 235px\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n          </colgroup>\\n          <tr>\\n            <th>Дата внесения</th>\\n            <td>2025.10.10</td>\\n            <th>Дата (период), к которой относится особая отметка</th>\\n            <td></td>\\n          </tr>\\n          <tr>\\n            <th>Особая отметка</th>\\n            <td colspan=\\\"3\\\">осложненные роды, дата</td>\\n          </tr>\\n          <tr>\\n            <th>Организация здравоохранения</th>\\n            <td colspan=\\\"3\\\"></td>\\n          </tr>\\n          <tr>\\n            <th>ФИО медицинского работника</th>\\n            <td colspan=\\\"3\\\">Царенко Сергей Владимирович. Врач-аллерголог-иммунолог</td>\\n          </tr>\\n          <tr>\\n            <th>Должность медицинского работника *</th>\\n            <td colspan=\\\"3\\\">Царенко Сергей Владимирович. Врач-аллерголог-иммунолог</td>\\n          </tr>\\n        </table>\\n      </div>\\n\\n      <div class=\\\"section\\\">\\n        <div class=\\\"section-title\\\">ЭЛН ПОДПИСАЛ</div>\\n        <table>\\n          <colgroup>\\n            <col style=\\\"width: 235px\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n            <col style=\\\"width: auto\\\" />\\n          </colgroup>\\n          <tr>\\n            <th>ФИО медицинского работника</th>\\n            <td colspan=\\\"3\\\">Филатов Игорь Петрович</td>\\n          </tr>\\n          <tr>\\n            <th>Должность медицинского работника *</th>\\n            <td colspan=\\\"3\\\">Филатов Игорь Петрович</td>\\n          </tr>\\n          <tr>\\n            <th>Идентификатор открытого ключа</th>\\n            <td colspan=\\\"3\\\">Нужно выдрать из CMS и добавить в liquid model</td>\\n          </tr>\\n        </table>\\n      </div>\\n\\n      <span style=\\\"font-size:7pt\\\">* Согласно Общегосударственному классификатору Республики Беларусь ОКРБ 014-2017 \\\"Занятия\\\".</span>\\n      <br>\\n      <span style=\\\"font-size:7pt\\\">Это форма внешнего представления электронного листка нетрудоспособности по беременности и родам, подписанного электронной цифровой подписью.</span>\\n      <br>\\n      <span style=\\\"font-size:7pt\\\">Источник сведений - централизованная информационная система здравоохранения.</span>\\n    </div>\\n  \\r\\n<!-- Visual Studio Browser Link -->\\r\\n<script type=\\\"text/javascript\\\" src=\\\"/_vs/browserLink\\\" async=\\\"async\\\" id=\\\"__browserLink_initializationData\\\" data-requestId=\\\"52468032028b478e956d905123bd229a\\\" data-requestMappingFromServer=\\\"false\\\" data-connectUrl=\\\"http://localhost:62987/0260208de9d2451b8006b0ddb26c3d30/browserLink\\\"></script>\\r\\n<!-- End Browser Link -->\\r\\n<script src=\\\"/_framework/aspnetcore-browser-refresh.js\\\"></script></body>\\n</html>\",\n\t\t\"test\": true\n\t},\n\t\"BundleId\": \"0d7c8a95-a845-11f0-98f8-279a2fb3bcfe\",\n\t\"Message\": \"Status Code: 507. Error message: ORA-06550: line 1, column 16:\\nPLS-00302: component 'SEND_DOC' must be declared\\nORA-06550: line 1, column 7:\\nPL/SQL: Statement ignored\\n\""
    },
    {
      "key": "pregnancyPatientId",
      "value": "pa-f1b518a6-8e4f-11f0-999f-c3f3a43aa182"
    },
    {
      "key": "pregnancyTempDis",
      "value": "td-dbacfd78-aa84-11f0-a672-29bb57731f05"
    },
    {
      "key": "pregnancyTempDisProlong",
      "value": "td-ee99614e-a900-11f0-8cc9-ab7e9bf2059f"
    },
    {
      "key": "pregnancyProvenance",
      "value": "td-d77ed292-aa84-11f0-8401-3010318bf8f8"
    },
    {
      "key": "compressedBundle",
      "value": "{\"resourceType\":\"Bundle\",\"id\":\"1ea441c1-d585-4c3e-8967-12d8438c36cf\",\"meta\":{\"lastUpdated\":\"2024-02-01T10:30:00Z\",\"profile\":[\"https://fhir.by/AbstractArea/StructureDefinition/Bundle/BundleTD\"]},\"identifier\":{\"system\":\"https://minzdrav.gov.by\",\"value\":\"01-193605729-2025000000000223-01\"},\"type\":\"document\",\"timestamp\":\"2025-04-17T10:30:00Z\",\"entry\":[{\"fullUrl\":\"Composition/f1779376-3a50-4917-8b70-f25a7b8c4c8c\",\"resource\":{\"resourceType\":\"Composition\",\"id\":\"f1779376-3a50-4917-8b70-f25a7b8c4c8c\",\"meta\":{\"profile\":[\"https://fhir.by/StructureDefinition/DocumentTD\"]},\"status\":\"final\",\"type\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/DigitalDocumentKind\",\"code\":\"01\",\"display\":\"Электронный лист нетрудоспособности\"}]},\"subject\":[{\"reference\":\"Patient/pa-f1b518a6-8e4f-11f0-999f-c3f3a43aa182\",\"display\":\"Евдокимова Людмила Ивановна\"}],\"date\":\"2024-02-01T10:30:00Z\",\"author\":[{\"reference\":\"Practitioner/aa1e6487-a4dd-11f0-b638-c4e71bd51ce2\",\"display\":\"Филатов Игорь Петрович\"}],\"title\":\"Структура ЭЛН\",\"custodian\":{\"reference\":\"Organization/14736518-cc34-4e2e-8d60-204955589577\",\"display\":\"Учреждение здравоохранения '1-я центральная районная клиническая поликлиника Центрального района г.Минска'\"},\"event\":[{\"detail\":[{\"reference\":{\"reference\":\"EpisodeOfCare/td-2adc6d03-aa85-11f0-a672-29bb57731f05\"}}]},{\"detail\":[{\"reference\":{\"reference\":\"Task/f5735958-dac5-4c5a-9e27-d63f5da6a398\"}}]},{\"detail\":[{\"reference\":{\"reference\":\"Provenance/def8dec1-c85d-4dba-a904-96042bca198f\"}}]}]}},{\"fullUrl\":\"Patient/pc-8eedee99-1909-4d17-93bf-b8ffb0c5e580\",\"resource\":{\"resourceType\":\"Patient\",\"id\":\"pc-8eedee99-1909-4d17-93bf-b8ffb0c5e580\",\"meta\":{\"lastUpdated\":\"2025-07-23T16:00:00Z\",\"profile\":[\"https://fhir.by/StructureDefinition/PatientED\"]},\"extension\":[{\"url\":\"https://fhir.by/StructureDefinition/DocumentKind\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/DigitalDocumentKind\",\"code\":\"01\"}]}}],\"identifier\":[{\"type\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/PersonalDocumentType\",\"code\":\"IPA\"}]},\"value\":\"7150892A001PB9\"}],\"active\":true,\"name\":[{\"family\":\"Евдокимова\",\"given\":[\"Людмила\",\"Ивановна\"]}],\"birthDate\":\"1988-04-21\",\"link\":[{\"other\":{\"reference\":\"Patient/pa-f1b518a6-8e4f-11f0-999f-c3f3a43aa182\"},\"type\":\"refer\"}]}},{\"fullUrl\":\"EpisodeOfCare/td-2adc6d03-aa85-11f0-a672-29bb57731f05\",\"resource\":{\"resourceType\":\"EpisodeOfCare\",\"id\":\"td-2adc6d03-aa85-11f0-a672-29bb57731f05\",\"meta\":{\"profile\":[\"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum\"]},\"extension\":[{\"extension\":[{\"url\":\"https://fhir.by/StructureDefinition/PractitionerRoleReference\",\"valueReference\":{\"reference\":\"PractitionerRole/aa75bddc-a4dd-11f0-b638-c4e71bd51ce2\",\"display\":\"Царенко Сергей Владимирович. Врач-аллерголог-иммунолог\"}},{\"url\":\"https://fhir.by/StructureDefinition/OrganizationReference\",\"valueReference\":{\"reference\":\"Organization/14736518-cc34-4e2e-8d60-204955589577\",\"display\":\"Открытое акционерное общество \\\"Агентство сервисизации и реинжиниринга\\\"\"}},{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\"version\":\"1\",\"code\":\"1\",\"display\":\"амбулаторный\"}]}},{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\"version\":\"1.2\",\"code\":\"1\",\"display\":\"оплачиваемый период\"}]}},{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\"version\":\"1.18\",\"code\":\"09\",\"display\":\"в связи с беременностью и родами, в том числе наступившими до 30 недель беременности (27 недель беременности - у женщин, постоянно (преимущественно) проживающих и (или) работающих, проходящих службу, обучающихся на территории радиоактивного загрязнения), осложнениями беременности, родов и (или) послеродового периода, а также усыновлением (удочерением), установлением опеки над ребенком в возрасте до 3 месяцев (беременность и роды)\"}]}},{\"url\":\"https://fhir.by/StructureDefinition/PractitionerRoleReference\",\"valueReference\":{\"reference\":\"PractitionerRole/ddd5df67-a4e5-11f0-b638-c4e71bd51ce2\",\"display\":\"Свиридович Виктория Геннадьевна. Врач авиационный\"}},{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDisabilityEncounterPeriod\",\"valuePeriod\":{\"start\":\"2025-08-01\",\"end\":\"2025-11-05\"}}],\"url\":\"https://fhir.by/StructureDefinition/ReleasePeriod\"},{\"url\":\"https://fhir.by/StructureDefinition/TDCaseClosing\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TDCaseClosing\",\"version\":\"1.15\",\"code\":\"1\",\"display\":\"Пациент признан трудоспособным, или закрывается ЛН в связи с уходом за больным членом семьи\"}]}}],\"identifier\":[{\"use\":\"usual\",\"value\":\"2025000000000223\"}],\"status\":\"finished\",\"patient\":{\"reference\":\"Patient/pa-f1b518a6-8e4f-11f0-999f-c3f3a43aa182\",\"display\":\"Людмила Ивановна\"},\"period\":{\"start\":\"2025-08-01\",\"end\":\"2025-11-05\"},\"careManager\":{\"reference\":\"PractitionerRole/aa75bddc-a4dd-11f0-b638-c4e71bd51ce2\",\"display\":\"Царенко Сергей Владимирович. Врач-аллерголог-иммунолог\"}}},{\"fullUrl\":\"Task/f5735958-dac5-4c5a-9e27-d63f5da6a398\",\"resource\":{\"resourceType\":\"Task\",\"id\":\"f5735958-dac5-4c5a-9e27-d63f5da6a398\",\"meta\":{\"lastUpdated\":\"2024-04-16T10:30:00Z\",\"profile\":[\"https://fhir.by/StructureDefinition/EpisodeToBePaid\"]},\"basedOn\":[{\"reference\":\"EpisodeOfCare/td-2adc6d03-aa85-11f0-a672-29bb57731f05\"}],\"status\":\"requested\",\"intent\":\"order\",\"for\":{\"reference\":\"Patient/pc-8eedee99-1909-4d17-93bf-b8ffb0c5e580\",\"display\":\"Евдокимова Людмила Ивановна\"},\"executionPeriod\":{\"start\":\"2025-08-01\",\"end\":\"2025-11-05\"},\"requester\":{\"reference\":\"Organization/14736518-cc34-4e2e-8d60-204955589577\",\"display\":\"Учреждение здравоохранения '1-я центральная районная клиническая поликлиника Центрального района г.Минска'\"},\"owner\":{\"reference\":\"PractitionerRole/aa75bddc-a4dd-11f0-b638-c4e71bd51ce2\",\"display\":\"Врач-специалист, Филатов Игорь Петрович\"},\"performer\":[{\"actor\":{\"reference\":\"Patient/pa-f1b518a6-8e4f-11f0-999f-c3f3a43aa182\",\"display\":\"Евдокимова Людмила Ивановна\"}}]}},{\"fullUrl\":\"Provenance/def8dec1-c85d-4dba-a904-96042bca198f\",\"resource\":{\"resourceType\":\"Provenance\",\"id\":\"def8dec1-c85d-4dba-a904-96042bca198f\",\"meta\":{\"profile\":[\"https://fhir.by/StructureDefinition/ProvenanceDocumentInfoTD\"]},\"target\":[{\"reference\":\"Patient/pa-f1b518a6-8e4f-11f0-999f-c3f3a43aa182\"}],\"recorded\":\"2025-04-16T10:30:00Z\",\"authorization\":[{\"reference\":{\"reference\":\"Task/f5735958-dac5-4c5a-9e27-d63f5da6a398\"}}],\"patient\":{\"reference\":\"Patient/pa-f1b518a6-8e4f-11f0-999f-c3f3a43aa182\"},\"agent\":[{\"type\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/AgentTypeProvenance\",\"code\":\"organization\"}]},\"who\":{\"reference\":\"Organization/14736518-cc34-4e2e-8d60-204955589577\",\"display\":\"Учреждение здравоохранения '1-я центральная районная клиническая поликлиника Центрального района г.Минска'\"}},{\"type\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/AgentTypeProvenance\",\"code\":\"practitioner\"}]},\"who\":{\"reference\":\"Practitioner/aa1e6487-a4dd-11f0-b638-c4e71bd51ce2\",\"display\":\"Филатов Игорь Петрович\"}},{\"type\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/AgentTypeProvenance\",\"code\":\"practitionerRole\"}]},\"who\":{\"reference\":\"PractitionerRole/aa75bddc-a4dd-11f0-b638-c4e71bd51ce2\",\"display\":\"Врач-специалист, Филатов Игорь Петрович\"}}]}}]}"
    },
    {
      "key": "randomGuid",
      "value": "d3029164-7b95-4adf-8bcb-98214b309e14"
    },
    {
      "key": "bundleId",
      "value": "64e8a4fd-aa85-11f0-8bd9-f6fd720850b0"
    },
    {
      "key": "StatusUrl",
      "value": "http://localhost:5192/fhir/Bundle/64e8a4fd-aa85-11f0-8bd9-f6fd720850b0/$status"
    },
    {
      "key": "tdResource",
      "value": "{\"resourceType\":\"EpisodeOfCare\",\"id\":\"td-dbacfd78-aa84-11f0-a672-29bb57731f05\",\"meta\":{\"profile\":[\"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisability\"]},\"extension\":[{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\"version\":\"1.18\",\"code\":\"09\",\"display\":\"в связи с беременностью и родами, в том числе наступившими до 30 недель беременности (27 недель беременности - у женщин, постоянно (преимущественно) проживающих и (или) работающих, проходящих службу, обучающихся на территории радиоактивного загрязнения), осложнениями беременности, родов и (или) послеродового периода, а также усыновлением (удочерением), установлением опеки над ребенком в возрасте до 3 месяцев (беременность и роды)\"}]}},{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDiasabilityEncounterAction\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/SeakLeavePeriod\",\"version\":\"1.1\",\"code\":\"close\",\"display\":\"Закрытие случая\"}]}},{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\"version\":\"1\",\"code\":\"1\",\"display\":\"амбулаторный\"}]}},{\"url\":\"https://fhir.by/StructureDefinition/TDCaseClosing\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TDCaseClosing\",\"version\":\"1.15\",\"code\":\"1\",\"display\":\"Пациент признан трудоспособным, или закрывается ЛН в связи с уходом за больным членом семьи\"}]}},{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\"version\":\"1.2\",\"code\":\"1\",\"display\":\"оплачиваемый период\"}]}},{\"url\":\"https://fhir.by/StructureDefinition/HeadOfUnit\",\"valueReference\":{\"reference\":\"PractitionerRole/ddd5df67-a4e5-11f0-b638-c4e71bd51ce2\",\"display\":\"Свиридович Виктория Геннадьевна. Врач авиационный\"}}],\"status\":\"finished\",\"reason\":[{\"use\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TemporaryDisabilityReasonOfDisability\",\"version\":\"1.1\",\"code\":\"85\",\"display\":\"Отпуск по беременности и родам\"}]}}],\"patient\":{\"reference\":\"Patient/Patient3\",\"display\":\"Людмила Ивановна\"},\"managingOrganization\":{\"reference\":\"Organization/14736518-cc34-4e2e-8d60-204955589577\",\"display\":\"Открытое акционерное общество \\\"Агентство сервисизации и реинжиниринга\\\"\"},\"period\":{\"start\":\"2025-08-01\",\"end\":\"2025-11-05\"},\"careManager\":{\"reference\":\"PractitionerRole/aa75bddc-a4dd-11f0-b638-c4e71bd51ce2\",\"display\":\"Царенко Сергей Владимирович. Врач-аллерголог-иммунолог\"}}"
    },
    {
      "key": "patientBundleReference",
      "value": "Patient/Patient3"
    },
    {
      "key": "pregnancyTempDisSum",
      "value": "td-2adc6d03-aa85-11f0-a672-29bb57731f05"
    },
    {
      "key": "tdSumResource",
      "value": "{\"resourceType\":\"EpisodeOfCare\",\"id\":\"td-2adc6d03-aa85-11f0-a672-29bb57731f05\",\"meta\":{\"profile\":[\"https://fhir.by/StructureDefinition/EpisodeOfTemporaryDisabilitySum\"]},\"extension\":[{\"extension\":[{\"url\":\"https://fhir.by/StructureDefinition/PractitionerRoleReference\",\"valueReference\":{\"reference\":\"PractitionerRole/aa75bddc-a4dd-11f0-b638-c4e71bd51ce2\",\"display\":\"Царенко Сергей Владимирович. Врач-аллерголог-иммунолог\"}},{\"url\":\"https://fhir.by/StructureDefinition/OrganizationReference\",\"valueReference\":{\"reference\":\"Organization/14736518-cc34-4e2e-8d60-204955589577\",\"display\":\"Открытое акционерное общество \\\"Агентство сервисизации и реинжиниринга\\\"\"}},{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDisabilityRegime\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TemporaryDisabilityRegime\",\"version\":\"1\",\"code\":\"1\",\"display\":\"амбулаторный\"}]}},{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDisabilityPeriodPaid\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TemporaryDisabilityPeriodPaidCode\",\"version\":\"1.2\",\"code\":\"1\",\"display\":\"оплачиваемый период\"}]}},{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDisabilityKindDisability\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TemporaryDisabilityKindDisability\",\"version\":\"1.18\",\"code\":\"09\",\"display\":\"в связи с беременностью и родами, в том числе наступившими до 30 недель беременности (27 недель беременности - у женщин, постоянно (преимущественно) проживающих и (или) работающих, проходящих службу, обучающихся на территории радиоактивного загрязнения), осложнениями беременности, родов и (или) послеродового периода, а также усыновлением (удочерением), установлением опеки над ребенком в возрасте до 3 месяцев (беременность и роды)\"}]}},{\"url\":\"https://fhir.by/StructureDefinition/PractitionerRoleReference\",\"valueReference\":{\"reference\":\"PractitionerRole/ddd5df67-a4e5-11f0-b638-c4e71bd51ce2\",\"display\":\"Свиридович Виктория Геннадьевна. Врач авиационный\"}},{\"url\":\"https://fhir.by/StructureDefinition/TemporaryDisabilityEncounterPeriod\",\"valuePeriod\":{\"start\":\"2025-08-01\",\"end\":\"2025-11-05\"}}],\"url\":\"https://fhir.by/StructureDefinition/ReleasePeriod\"},{\"url\":\"https://fhir.by/StructureDefinition/TDCaseClosing\",\"valueCodeableConcept\":{\"coding\":[{\"system\":\"https://fhir.by/ValueSet/TDCaseClosing\",\"version\":\"1.15\",\"code\":\"1\",\"display\":\"Пациент признан трудоспособным, или закрывается ЛН в связи с уходом за больным членом семьи\"}]}}],\"identifier\":[{\"use\":\"usual\",\"value\":\"2025000000000223\"}],\"status\":\"finished\",\"patient\":{\"reference\":\"Patient/pa-f1b518a6-8e4f-11f0-999f-c3f3a43aa182\",\"display\":\"Людмила Ивановна\"},\"period\":{\"start\":\"2025-08-01\",\"end\":\"2025-11-05\"},\"careManager\":{\"reference\":\"PractitionerRole/aa75bddc-a4dd-11f0-b638-c4e71bd51ce2\",\"display\":\"Царенко Сергей Владимирович. Врач-аллерголог-иммунолог\"}}"
    },
    {
      "key": "tdSumIdentifier",
      "value": "2025000000000223"
    },
    {
      "key": "EpisodeOfCareVN",
      "value": ""
    }
  ]
}